Implement error-specific exit codes defined by libmutton

This commit is contained in:
2024-08-13 17:36:15 -04:00
parent 888b1ca80d
commit b68b2a8931
6 changed files with 31 additions and 9 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ func AddEntry(targetLocation string, hideSecrets bool, entryType uint8) {
_, isAccessible := core.TargetIsFile(targetLocation, false, 0)
if isAccessible {
fmt.Println(core.AnsiError + "Target location already exists" + core.AnsiReset)
os.Exit(1)
os.Exit(106)
}
// ensure target containing directory exists and is a directory (not a file)