mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-28 04:46:42 -04:00
Bump go-boilerplate; make error codes sequential
This commit is contained in:
+4
-6
@@ -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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user