You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When invalid parameters are used (eg. c/) for addBook and editBook, the error message does not identify these as invalid. Rather, the application treats them as part of the input for the previous valid parameter, making the program not work as intended.
To Reproduce
Steps to reproduce the behavior:
Type 'editBook 6 t/fantasy n/One Year of Solitude a/John Mayer m/5 c/Yes'
See error about incorrect input to the m/ parameter instead of the invalid c/ parameter
Type 'addBook t/fantasy n/Two Years of Solitude c/hello m/5 a/John Mayer'
See incorrect behaviour - no error is produced and the 'c/hello' is added to the name of the book
Expected behavior
Either the invalid parameter tag should be ignored, or an error saying that it is an invalid parameter should be shown.
Describe the bug
When invalid parameters are used (eg.
c/
) for addBook and editBook, the error message does not identify these as invalid. Rather, the application treats them as part of the input for the previous valid parameter, making the program not work as intended.To Reproduce
Steps to reproduce the behavior:
Type 'editBook 6 t/fantasy n/One Year of Solitude a/John Mayer m/5 c/Yes'
See error about incorrect input to the m/ parameter instead of the invalid c/ parameter
Type 'addBook t/fantasy n/Two Years of Solitude c/hello m/5 a/John Mayer'
See incorrect behaviour - no error is produced and the 'c/hello' is added to the name of the book
Expected behavior
Either the invalid parameter tag should be ignored, or an error saying that it is an invalid parameter should be shown.
Screenshots
Reported by: @whyjayxp
Severity: Medium
[original: nus-cs2103-AY1819S2/pe-dry-run#397]
The text was updated successfully, but these errors were encountered: