From a0fd3eca98218aa7d165080ab20cf234330e5e09 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 2 Apr 2018 18:43:50 +0200 Subject: fsck: test against example_filesystems --- internal/configfile/config_file.go | 2 +- internal/exitcodes/exitcodes.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'internal') diff --git a/internal/configfile/config_file.go b/internal/configfile/config_file.go index 3fd16c7..753dd72 100644 --- a/internal/configfile/config_file.go +++ b/internal/configfile/config_file.go @@ -169,7 +169,7 @@ func LoadConfFile(filename string, password []byte) ([]byte, *ConfFile, error) { `+"\033[0m") - return nil, nil, fmt.Errorf("Deprecated filesystem") + return nil, nil, exitcodes.NewErr("Deprecated filesystem", exitcodes.DeprecatedFS) } if len(password) == 0 { // We have validated the config file, but without a password we cannot diff --git a/internal/exitcodes/exitcodes.go b/internal/exitcodes/exitcodes.go index 36f2aae..fc65166 100644 --- a/internal/exitcodes/exitcodes.go +++ b/internal/exitcodes/exitcodes.go @@ -63,6 +63,8 @@ const ( Profiler = 25 // FsckErrors - the filesystem check found errors FsckErrors = 26 + // DeprecatedFS - this filesystem is deprecated + DeprecatedFS = 27 ) // Err wraps an error with an associated numeric exit code -- cgit v1.2.3