nus-cs2103-AY2223S2 / forum

12 stars 0 forks source link

Question regarding changing export file format #307

Open lennoxtr opened 1 year ago

lennoxtr commented 1 year ago

In our group's program, we allow the user to enter commands to export the current data to a file and import the data from a file.

The export command was missed out in the user guide documentation, but the intended behavior is such that if the user exports to a file that is not in JSON format, the program would throws an error. The current behavior, however, allows the user to export to a file that is not in JSON format, and then throws an error when the user import that file as it could not be read. Will this be considered a bug?

damithc commented 1 year ago

@lennoxtr Changing this behavior might go into the feature changes territory. Instead, you can document this limitation (and how to recover from it). Tighter error handling can be postponed to a future version.