summaryrefslogtreecommitdiff
path: root/scorshd.go
diff options
context:
space:
mode:
Diffstat (limited to 'scorshd.go')
-rw-r--r--scorshd.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/scorshd.go b/scorshd.go
index 9ada3b8..f5c57b9 100644
--- a/scorshd.go
+++ b/scorshd.go
@@ -29,15 +29,15 @@ func SCORSHerr(err int) error {
var errStr string
switch err {
- case SCORSH_ERR_NO_FILE:
+ case errNoFile:
errStr = "Invalid file name"
- case SCORSH_ERR_KEYRING:
+ case errKeyring:
errStr = "Invalid keyring"
- case SCORSH_ERR_NO_REPO:
+ case errNoRepo:
errStr = "Invalid repository"
- case SCORSH_ERR_NO_COMMIT:
+ case errNoCommit:
errStr = "Invalid commit ID"
- case SCORSH_ERR_SIGNATURE:
+ case errSignature:
errStr = "Invalid signature"
default:
errStr = "Generic Error"