nus-cs2113-AY2122S1 / pe-dev-response

0 stars 0 forks source link

Force exiting gives error #2950

Open nus-se-bot opened 2 years ago

nus-se-bot commented 2 years ago

When I exit using ctrl+c the exceptin is thrown for no such element. image.png


[original: nus-cs2113-AY2122S1/pe-interim#2938] [original labels: severity.High type.FunctionalityBug]

bernardboey commented 2 years ago

Team's Response

This is expected behaviour - the app should not be reasonably expected to recover from such input from the user, because ctrl+c is intended as a keyboard shortcut to terminate programs in the command line (see here).

Our app thus follows this convention of allowing termination via ctrl+c. Furthermore, the data would have been saved properly and no data will be lost in the event of program termination. The data will be reloaded accordingly when the user loads the app again.

Additionally, this issue is rare and is unlikely to affect normal operations of the product.

Duplicate status (if any):

--