Skip to content

Empty rate Field Prompts Irrelevant Command Exception #1

@e1121208

Description

@e1121208

Description

The r/ field should not be empty is not alerted to the user.


Steps to Reproduce

  1. Attempt adding a user with the r/ field empty.
  2. Observe that the result display returned does not address the issue.

Expected Behavior

Users should be prompted of the empty rate field when inputting an empty r/.

Actual Behavior

However, the result display only reminds user that the decimal place should be at most two and within the price range specified by the program.

Additional Information

Input:
add n/John Doe p/98765432 e/johnd@example.com a/311, Clementi Ave 2, #02-25 t/Sunday-1000-1200 s/Mathematics r/ paid/6000 owed/3000
Output:
Screenshot 2024-11-15 at 4.45.28 PM.png


Suggested Improvement

Consider throwing another command exception in the case of that field being empty.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions