udpate error message

This commit is contained in:
Jonathan Wren 2022-04-30 12:35:18 -07:00
parent fb20f2ffa2
commit 61653165f8
2 changed files with 6 additions and 6 deletions

View file

@ -98,7 +98,7 @@ class MsgText(Enum):
""" """
NoTextReceived = """ NoTextReceived = """
Entry not saved No entry to save, because no text was received
""" """
# --- Upgrade --- # # --- Upgrade --- #

View file

@ -73,12 +73,12 @@ Feature: Writing new entries.
| basic_dayone.yaml | | basic_dayone.yaml |
| basic_folder.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 "<config_file>" Given we use the config "<config_file>"
And we write nothing to the editor if opened And we write nothing to the editor if opened
And we use the password "test" if prompted And we use the password "test" if prompted
When we run "jrnl --edit" 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 And the editor should have been called
Examples: configs Examples: configs
@ -89,13 +89,13 @@ Feature: Writing new entries.
| basic_encrypted.yaml | | basic_encrypted.yaml |
| basic_onefile.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 "<config_file>" Given we use the config "<config_file>"
And we use the password "test" if prompted And we use the password "test" if prompted
When we run "jrnl" and enter "\x04" 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" 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 Examples: configs
| config_file | | config_file |