Skip to content

Commit

Permalink
fix error log (#6480)
Browse files Browse the repository at this point in the history
  • Loading branch information
2bbb authored and arturoc committed Dec 1, 2019
1 parent 621ec8d commit dd972c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/openFrameworks/utils/ofJson.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ inline bool ofSaveJson(const std::filesystem::path& filename, const ofJson & jso
try{
jsonFile << json;
}catch(std::exception & e){
ofLogError("ofLoadJson") << "Error saving json to " << filename.string() << ": " << e.what();
ofLogError("ofSaveJson") << "Error saving json to " << filename.string() << ": " << e.what();
return false;
}catch(...){
ofLogError("ofLoadJson") << "Error saving json to " << filename.string();
ofLogError("ofSaveJson") << "Error saving json to " << filename.string();
return false;
}
return true;
Expand All @@ -54,10 +54,10 @@ inline bool ofSavePrettyJson(const std::filesystem::path& filename, const ofJson
try{
jsonFile << json.dump(4);
}catch(std::exception & e){
ofLogError("ofLoadJson") << "Error saving json to " << filename.string() << ": " << e.what();
ofLogError("ofSavePrettyJson") << "Error saving json to " << filename.string() << ": " << e.what();
return false;
}catch(...){
ofLogError("ofLoadJson") << "Error saving json to " << filename.string();
ofLogError("ofSavePrettyJson") << "Error saving json to " << filename.string();
return false;
}
return true;
Expand Down

0 comments on commit dd972c6

Please sign in to comment.