Skip to content

Commit

Permalink
saveState: return false on error
Browse files Browse the repository at this point in the history
  • Loading branch information
black-sliver committed Jan 2, 2024
1 parent afa4945 commit cb983cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/statemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ bool StateManager::saveState(Tracker* tracker, ScriptHost*,
return writeFile(filename, new_state);
} catch (std::exception& ex) {
fprintf(stderr, "error saving: %s\n", ex.what());
return false;
}
return true;
}
Expand Down

0 comments on commit cb983cd

Please sign in to comment.