Assign error-specific exit codes to constants

This commit is contained in:
2024-08-13 20:48:20 -04:00
parent a1c9827c04
commit 4c54349b39
17 changed files with 90 additions and 92 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ func WalkEntryDir() ([]string, []string) {
// otherwise, print the source of the error
fmt.Println(core.AnsiError+"An unexpected error occurred while generating the entry list:", err.Error()+core.AnsiReset)
}
os.Exit(111)
os.Exit(core.ErrorOther)
}
// trim root path from each path before storing