nus-cs2113-AY2324S1 / pe-dev-response

0 stars 0 forks source link

Bad error message when adding invalid stock code #1016

Open nus-pe-bot opened 12 months ago

nus-pe-bot commented 12 months ago

image.png


[original: nus-cs2113-AY2324S1/pe-interim#985] [original labels: type.FunctionalityBug severity.High]

wwweert123 commented 12 months ago

Team's Response

Thank you for pointing this out. I have missed the handling of passing strings with spaces into add stock command and should have printed a more descriptive error message.

image.png

However, it is also stated that addstock command should not take a stock code with spaces. Also, the user can continue to use the application after this error and the error message seems to have already pointed the user to where the error was.

Duplicate status (if any):

--