AY2324S1-CS2103T-T08-1 / tp

MIT License
0 stars 5 forks source link

Index Error Message Bug #311

Closed yanghengtang closed 1 year ago

yanghengtang commented 1 year ago

Currently we define a valid integer to be a positive integer in the error message

If you enter a number more than 2147483647. It will give the error message

Invalid command format! 
delete_p: Deletes the patient identified by the index number used in the displayed patient list.
Parameters: INDEX (must be a positive integer)
Example: delete_p 2

However, index more than 2147483647 is indeed a valid integer and should return:

The patient index provided is invalid

Therefore the error message should more accurately capture the constraint of INDEX by stating it is: (must be a positive integer and less than 2147483648)