Skip to content
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

Merged
merged 5 commits into from
Apr 4, 2024

Conversation

jamessinmaojun
Copy link

According to the TP Feature Testing Document.

@jamessinmaojun jamessinmaojun requested a review from yleeyilin April 4, 2024 18:47
@Joshy837 Joshy837 self-requested a review April 4, 2024 18:49
Copy link

@yleeyilin yleeyilin left a 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

Copy link

@Joshy837 Joshy837 left a 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";
Copy link

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";
Copy link

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";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good grammar

Copy link

codecov bot commented Apr 4, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 76.44%. Comparing base (178cc19) to head (59d2846).
Report is 4 commits behind head on master.

Files Patch % Lines
...va/seedu/address/logic/messages/ClearMessages.java 0.00% 1 Missing ⚠️
...ava/seedu/address/logic/messages/ListMessages.java 0.00% 1 Missing ⚠️
...dress/logic/parser/AddMaintainerCommandParser.java 93.75% 0 Missing and 1 partial ⚠️
...du/address/logic/parser/AddStaffCommandParser.java 93.75% 0 Missing and 1 partial ⚠️
...address/logic/parser/AddSupplierCommandParser.java 93.75% 0 Missing and 1 partial ⚠️
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.
📢 Have feedback on the report? Share it here.

@Joshy837 Joshy837 merged commit 4d68baa into AY2324S2-CS2103T-W10-2:master Apr 4, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants