diff --git a/jrnl/messages.py b/jrnl/messages.py index d1edc2dc..48684195 100644 --- a/jrnl/messages.py +++ b/jrnl/messages.py @@ -98,7 +98,7 @@ class MsgText(Enum): """ NoTextReceived = """ - Entry not saved + No entry to save, because no text was received """ # --- Upgrade --- # diff --git a/tests/bdd/features/write.feature b/tests/bdd/features/write.feature index 6425a038..608bc772 100644 --- a/tests/bdd/features/write.feature +++ b/tests/bdd/features/write.feature @@ -73,12 +73,12 @@ Feature: Writing new entries. | basic_dayone.yaml | | basic_folder.yaml | - Scenario Outline: Writing an empty entry from the editor should yield "Entry not saved" message + Scenario Outline: Writing an empty entry from the editor should yield "No entry to save" message Given we use the config "" And we write nothing to the editor if opened And we use the password "test" if prompted When we run "jrnl --edit" - Then the error output should contain "Entry not saved" + Then the error output should contain "No entry to save, because no text was received" And the editor should have been called Examples: configs @@ -89,13 +89,13 @@ Feature: Writing new entries. | basic_encrypted.yaml | | basic_onefile.yaml | - Scenario Outline: Writing an empty entry from the command line should yield "Entry not saved" message + Scenario Outline: Writing an empty entry from the command line should yield "No entry to save" message Given we use the config "" And we use the password "test" if prompted When we run "jrnl" and enter "\x04" - Then the error output should contain "Entry not saved" + Then the error output should contain "No entry to save, because no text was received" When we run "jrnl" and enter " \t \n \x04" - Then the error output should contain "Entry not saved" + Then the error output should contain "No entry to save, because no text was received" Examples: configs | config_file |