Description:
The program hang when the user input a date format where Time is a negative integer for the command appointment-list. E.g. -1200
Steps to reproduce
Run a different function with output result. E.g. "payment John Doe d/2024-10-14 1200 pay/unpaid"
Run appointment-list d/2024-10-18 1-000
Observe the result, the result will remain unchanged. E.g. sane as the result produced by "payment John Doe d/2024-10-14 1200 pay/unpaid"
Problem:
Maybe we should let the program shows an exception and prompt the user for the right date format instead of having the terminal result staying idle?
Description: The program hang when the user input a date format where
Time
is a negative integer for the commandappointment-list
. E.g.-1200
Steps to reproduce
appointment-list d/2024-10-18 1-000
Problem: Maybe we should let the program shows an exception and prompt the user for the right date format instead of having the terminal result staying idle?
Screenshot: