nus-cs2113-AY2324S1 / pe-dev-response

0 stars 0 forks source link

Adding a newline at the end of the persistence files causes an error and unclear error message #961

Open nus-pe-bot opened 12 months ago

nus-pe-bot commented 12 months ago

Editing the file "data/diet.txt" to include a few newlines at the end (see screenshot: image.png) causes an error when launching the app.

The shown error message (see here: image.png) is confusing: What does "start from empty lists by entering any other command" mean?


[original: nus-cs2113-AY2324S1/pe-interim#899] [original labels: type.FunctionalityBug severity.Low]

DaDevChia commented 12 months ago

Team's Response

According to our specification on file format, one line corresponds to one record/goal, so an empty line is regarded as a record/goal that is not incorrectly formatted.

We think the error message is very clear: If you choose to type bye, you will exit the program and then repair the file format. If you use other commands, you will start with an empty list containing no records/goals.

Duplicate status (if any):

--