diff options
author | Jakob Unterwurzacher | 2017-05-14 14:02:08 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-05-14 14:02:08 +0200 |
commit | 2aea2d3d62e5df4c8bf25195dc97e60b495f6f12 (patch) | |
tree | 1d81d3d4bea7e40d5c507c71ece15c35e3c490f1 /internal/exitcodes/exitcodes.go | |
parent | 8aabc542761046efdfe2c6b07662e446d223367b (diff) |
exitcodes: add code 22 for "password is empty"
Empty passwords are not allowed. Let's give the error
it's own exit code.
Diffstat (limited to 'internal/exitcodes/exitcodes.go')
-rw-r--r-- | internal/exitcodes/exitcodes.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/exitcodes/exitcodes.go b/internal/exitcodes/exitcodes.go index cba74b6..3e78b64 100644 --- a/internal/exitcodes/exitcodes.go +++ b/internal/exitcodes/exitcodes.go @@ -14,7 +14,8 @@ const ( // 3 is reserved because it was used by earlier gocryptfs version as a generic // "mount" error. - // CipherDir means that the CIPHERDIR does not exist + // CipherDir means that the CIPHERDIR does not exist, is not empty, or is not + // a directory. CipherDir = 6 // Init is an error on filesystem init Init = 7 @@ -50,6 +51,8 @@ const ( CtlSock = 20 // PanicLogCreate - there was a problem creating the /tmp/gocryptfs_paniclog.XYZ file. PanicLogCreate = 21 + // PasswordEmpty - we received an empty password + PasswordEmpty = 22 ) // Err wraps an error with an associated numeric exit code |