Skip to content

Empty PHONE_NUMBER Field in edit Command Prompts Unhelpful Exception #3

@e1121208

Description

@e1121208

Description

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


Steps to Reproduce

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

Expected Behavior

Users should be prompted of the strictly non-empty PHONE_NUMBER field when inputting an empty p/.

Actual Behavior

However, the result display only reminds user that the field should be of numerics, starting with certain digits and of strictly 8 digits long.

Additional Information

Input:
edit 1 p/
Output:
Screenshot 2024-11-15 at 5.07.46 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