Skip to content

Invalid input in Drinkadd command is not displaying correct error message #9

@crmlatte

Description

@crmlatte

When an invalid value is added in drink name, it does not show a error message for invalid name, but continues showing the previous success/error message
Significance: unable to tell whats the issue, confusing for users (2 examples shown below)

Steps to recreate:

  1. drinkadd n/j p/4.50 c/Coffee
  2. drinkadd n/ p/4.50 c/Coffee

Screenshot 2025-04-11 at 5.11.48 PM.png

Screenshot 2025-04-11 at 5.12.40 PM.png

  1. drinkadd n/Latte p/0..4 c/Coffee
  2. drinkadd n/Latte (Oat Milk) p/4.50 c/Coffee

Screenshot 2025-04-11 at 5.14.34 PM.png

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions