mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-27 21:16:14 +02:00
Reformat messages and add new centralized exception handling (#1417)
* Update and modularize exception handling cc #1024 #1141 - Stack traces are no longer shown to users unless the --debug flag is being used - Errors, warnings, and other messages contain color as needed - Converted error messages to Enum - Adds print_msg function to centralize output (this should replace all other output in other modules) Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
This commit is contained in:
parent
d6ff04cf17
commit
5273f8769d
11 changed files with 204 additions and 96 deletions
|
@ -1,6 +1,6 @@
|
|||
Feature: Writing new entries.
|
||||
|
||||
Scenario Outline: Multiline entry with punctuation should keep title punctuation
|
||||
Scenario Outline: Multiline entry with punctuation should keep title punctuation
|
||||
Given we use the config "<config_file>"
|
||||
And we use the password "bad doggie no biscuit" if prompted
|
||||
When we run "jrnl This is. the title\\n This is the second line"
|
||||
|
@ -96,7 +96,7 @@ Feature: Writing new entries.
|
|||
When we run "jrnl --config-override editor ''" and enter ""
|
||||
Then the stdin prompt should have been called
|
||||
And the output should be empty
|
||||
And the error output should contain "Writing Entry; on a blank line"
|
||||
And the error output should contain "To finish writing, press"
|
||||
And the editor should not have been called
|
||||
|
||||
Examples: configs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue