mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-28 04:46:41 -04:00
Implement error-specific exit codes defined by libmutton
This commit is contained in:
+1
-1
@@ -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...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user