mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🐛 load/save error caught
This commit is contained in:
parent
86ab9a0e8e
commit
6bc3a38aa2
1 changed files with 4 additions and 1 deletions
|
|
@ -286,6 +286,9 @@ public:
|
|||
if (!temp.isNull())
|
||||
{
|
||||
writer->write(temp, &user_save);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw std::invalid_argument("Saving Failed\n");
|
||||
}
|
||||
user_save.close();
|
||||
|
|
@ -303,8 +306,8 @@ public:
|
|||
if (!parseFromStream(builder, user_save, &temp, &errs))
|
||||
{
|
||||
std::cerr << errs << '\n';
|
||||
throw std::invalid_argument("Parsing Failed\n");
|
||||
user_save.close();
|
||||
throw std::invalid_argument("Parsing Failed\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue