nus-cs2103-AY1920S2 / pe-dev-response

0 stars 0 forks source link

Error handling with corrupted data file #2455

Open nus-pe-bot opened 4 years ago

nus-pe-bot commented 4 years ago

A rather sneaky yet possible scenario...

  1. Start a Pom session and exit.
  2. Go to the data file pomodoro.json and edit the name of the currently pomming task.
  3. Reopen the application. The app prompts to continue pom. type in Y. task with invalid name is being prompted.
  4. Moreover, exit command would fail to work after this. And the exit message prompted is AddressBook message.

image.png

image.png


[original: nus-cs2103-AY1920S2/pe-interim#2436]

Hardoh commented 4 years ago

Team's Response

Lowered the severity to medium.

I understand your concern but this seems to be more of an edge case. This error might have been cause due to your changing a task's information in pomodoro.json but it didn't match that in tasklist.json. Good catch, though. Cheers!

Duplicate status (if any):

--