jesusriles / Financial

1 stars 0 forks source link

Checks before opening a file #30

Open jesusriles opened 1 year ago

jesusriles commented 1 year ago

Add checks in the code where a file is going to be open.

E.g. Before even asking for the information to create a transaction, check if it is possible to open the file, otherwise, it doesn't make sense to ask for the information and then throw an error.

https://github.com/jesusriles/Financial/blob/3fd7755a63ec285b500d3de6839cfaf2a578822d/Financial/Transactions.cpp#L39