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 --- init_dir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init_dir.go') diff --git a/init_dir.go b/init_dir.go index 65b25d1..20c9fd9 100644 --- a/init_dir.go +++ b/init_dir.go @@ -42,7 +42,7 @@ func initDir(args *argContainer) { err = configfile.CreateConfFile(args.config, password, args.plaintextnames, args.scryptn, creator, args.aessiv) if err != nil { tlog.Fatal.Println(err) - os.Exit(exitcodes.Init) + os.Exit(exitcodes.WriteConf) } // Forward mode with filename encryption enabled needs a gocryptfs.diriv // in the root dir -- cgit v1.2.3