DingBao-sys / pe

0 stars 0 forks source link

error when using an integer out of bound index #5

Open DingBao-sys opened 7 months ago

DingBao-sys commented 7 months ago

Steps to reproduce: addv 999999999999999999999999999 d/25/2/2024 c/High Fever v/High

expected: error message that tell me the list is not so large

actual: Invalid command format! addv: adds a visit to the specified patient. Parameters: INDEX (must be a positive integer) [d/DATE OF VISIT] [c/CONDITION] [v/SEVERITY] OR [n/NAME] [p/PHONE] [d/DATE OF VISIT] [c/CONDITION] [v/SEVERITY] Example: addv 1 d/25/2/2024 c/Mild Fever v/Low

Reason: I think the error message does not match the error since the UG did say positive integer.

Screenshot 2024-04-19 at 4.47.47 PM.png

nus-pe-bot commented 7 months ago

Your response not required for this bug as the team has accepted the bug as it is.