Handle or explicitly ignore all remaining errors

This commit is contained in:
2024-08-12 14:13:48 -04:00
parent ed9c4e91ff
commit bb1ecc5bae
3 changed files with 21 additions and 11 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ func DirInit(preserveOldConfigDir bool) {
// create EntryRoot
err := os.MkdirAll(EntryRoot, 0700)
if err != nil {
fmt.Println(AnsiError + "Failed to create \"" + EntryRoot + "\":" + err.Error() + AnsiReset)
fmt.Println(AnsiError + "Failed to create \"" + EntryRoot + "\": " + err.Error() + AnsiReset)
os.Exit(102)
}
@@ -76,7 +76,7 @@ func DirInit(preserveOldConfigDir bool) {
// create config directory w/devices subdirectory
err = os.MkdirAll(ConfigDir+PathSeparator+"devices", 0700)
if err != nil {
fmt.Println(AnsiError + "Failed to create \"" + ConfigDir + "\":" + err.Error() + AnsiReset)
fmt.Println(AnsiError + "Failed to create \"" + ConfigDir + "\": " + err.Error() + AnsiReset)
os.Exit(102)
}
}