-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standardize error messages #228
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm but need fix check style
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -4,7 +4,7 @@ | |||
* Container for user redo command visible messages. | |||
*/ | |||
public class RedoMessages extends Messages { | |||
public static final String MESSAGE_REDO_SUCCESS = "Woof! Redo successfully! \uD83D\uDC36"; | |||
public static final String MESSAGE_REDO_FAIL = "Woof! There is no more future state to redo!"; | |||
public static final String MESSAGE_REDO_SUCCESS = "Woof! Redo successful! \uD83D\uDC36"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good improvement on grammar here!
@@ -4,9 +4,9 @@ | |||
* Container for user search command visible messages. | |||
*/ | |||
public class SearchMessages extends Messages { | |||
public static final String MESSAGE_SEARCH_PERSON_SUCCESS = "Woof! %1$s contacts found! \uD83D\uDC36"; | |||
public static final String MESSAGE_SEARCH_PERSON_SUCCESS = "Woof! %1$s contact(s) found! \uD83D\uDC36"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good change of separating contact & contacts
@@ -4,7 +4,7 @@ | |||
* Container for user undo command visible messages. | |||
*/ | |||
public class UndoMessages extends Messages { | |||
public static final String MESSAGE_UNDO_SUCCESS = "Woof! Undo successfully! \uD83D\uDC36"; | |||
public static final String MESSAGE_UNDO_FAIL = "Woof! There is no more previous state to undo!"; | |||
public static final String MESSAGE_UNDO_SUCCESS = "Woof! Undo successful! \uD83D\uDC36"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good grammar
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #228 +/- ##
============================================
+ Coverage 76.40% 76.44% +0.03%
Complexity 880 880
============================================
Files 130 132 +2
Lines 3158 3171 +13
Branches 356 356
============================================
+ Hits 2413 2424 +11
- Misses 614 616 +2
Partials 131 131 ☔ View full report in Codecov by Sentry. |
According to the TP Feature Testing Document.