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

Inconsistency in Error Message #2

Open
KhoonSun47 opened this issue Apr 5, 2024 · 0 comments
Open

Inconsistency in Error Message #2

KhoonSun47 opened this issue Apr 5, 2024 · 0 comments

Comments

@KhoonSun47
Copy link
Owner

The issue is on the inconsistency of error message displayed when a large index number is added.

  • Current Input:
    uc 9999999999999999999999999999999999999999999 n/alex

  • Current Output:
    Invalid command format!
    uc: Updates the details of the person identified by the index number used in the displayed person list. Existing values will be overwritten by the input values.
    Parameters: INDEX (must be a positive integer) [n/NAME] [c/CLASS/GROUP] [e/EMAIL] [p/PHONE] [t/TELEGRAM ID] [g/GITHUB ID]
    Example: uc 1 p/91234567 e/johndoe@example.com

  • Expected Output:
    The person index provided is invalid.

Since there is a validation for invalid userID, is it possible to insert an improvement to this validation such that it can check for inputs that exceeds the maximum amount of ID that this application allows?

For example (this should be the expected output):

Pasted Graphic 8.png

However (this is the current output):

Pasted Graphic 9.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant