Bump go-boilerplate; make error codes sequential

This commit is contained in:
2025-06-01 14:17:51 -04:00
parent 2e3be57e3e
commit 5f8789a0f0
12 changed files with 26 additions and 21 deletions
+4 -6
View File
@@ -13,10 +13,8 @@ const (
FSPath = "\u259e" // ▞ Path separator
FSMisc = "\u259f" // ▟ Misc. field separator (if \u259d is already used)
ErrorSyncProcess = 103
ErrorServerConnection = 104
ErrorTargetExists = 106
ErrorDecryption = 108
ErrorEncryption = 109
ErrorClipboard = 110
ErrorSyncProcess = 104
ErrorDecryption = 105
ErrorEncryption = 106
ErrorClipboard = 107
)
+1 -1
View File
@@ -24,7 +24,7 @@ func DirInit(preserveOldConfigDir bool) (string, error) {
// remove existing config directory (if it exists and not in append mode)
if !preserveOldConfigDir {
_, isAccessible := back.TargetIsFile(ConfigDir, false, 1)
_, isAccessible, _ := back.TargetIsFile(ConfigDir, false, 1) // error is ignored because errorOnFail is false
if isAccessible {
err = os.RemoveAll(ConfigDir)
if err != nil {