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
@@ -45,7 +45,7 @@ func EditEntryField(targetLocation string, hideSecrets bool, field int) {
editedNote, noteEdited := editNote(noteData)
if !noteEdited { // exit early if the note was not edited
fmt.Println(core.AnsiError + "Entry is unchanged" + core.AnsiReset)
os.Exit(1)
os.Exit(0)
}
unencryptedEntry = append(nonNoteData, editedNote...)
}