From c44389d9422f31e0b462d1bcd47f80e95913cb60 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 14 May 2017 14:30:50 +0200 Subject: exitcodes: specific codes for failure to read or write gocryptfs.conf New codes: * OpenConf = 23 * WriteConf = 24 --- internal/configfile/config_file.go | 1 + internal/exitcodes/exitcodes.go | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'internal') diff --git a/internal/configfile/config_file.go b/internal/configfile/config_file.go index 5605e1d..fea4a84 100644 --- a/internal/configfile/config_file.go +++ b/internal/configfile/config_file.go @@ -96,6 +96,7 @@ func LoadConfFile(filename string, password string) ([]byte, *ConfFile, error) { // Read from disk js, err := ioutil.ReadFile(filename) if err != nil { + fmt.Printf("LoadConfFile: ReadFile: %#v\n", err) return nil, nil, err } diff --git a/internal/exitcodes/exitcodes.go b/internal/exitcodes/exitcodes.go index 3e78b64..ae7824d 100644 --- a/internal/exitcodes/exitcodes.go +++ b/internal/exitcodes/exitcodes.go @@ -53,6 +53,10 @@ const ( PanicLogCreate = 21 // PasswordEmpty - we received an empty password PasswordEmpty = 22 + // OpenConf - the was an error opening the gocryptfs.conf file for reading + OpenConf = 23 + // WriteConf - could not write the gocryptfs.conf + WriteConf = 24 ) // Err wraps an error with an associated numeric exit code -- cgit v1.2.3