Skip to content

Commit

Permalink
Merge pull request #21 from jhiemstrawisc/issue-19
Browse files Browse the repository at this point in the history
Cleanup erroneous error messages produced by lot usage updates
  • Loading branch information
jhiemstrawisc authored Jul 29, 2024
2 parents 2dd3738 + 8ce370e commit c1819a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lotman_internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ std::pair<bool, std::string> lotman::Lot::update_usage_by_dirs(json update_JSON,
auto rp_bool_str = lot.update_self_usage("self_objects", lot.usage.self_objects, deltaMode);
if (!rp_bool_str.first) {
std::string int_err = rp_bool_str.second;
std::string ext_err = "Failure to update lot's self_GB: ";
std::string ext_err = "Failure to update lot's self_objects: ";
return std::make_pair(false, ext_err + int_err);
}
}
Expand All @@ -1530,7 +1530,7 @@ std::pair<bool, std::string> lotman::Lot::update_usage_by_dirs(json update_JSON,
auto rp_bool_str = lot.update_self_usage("self_GB_being_written", lot.usage.self_GB_being_written, deltaMode);
if (!rp_bool_str.first) {
std::string int_err = rp_bool_str.second;
std::string ext_err = "Failure to update lot's self_GB: ";
std::string ext_err = "Failure to update lot's self_GB_being_written: ";
return std::make_pair(false, ext_err + int_err);
}
}
Expand All @@ -1539,7 +1539,7 @@ std::pair<bool, std::string> lotman::Lot::update_usage_by_dirs(json update_JSON,
auto rp_bool_str = lot.update_self_usage("self_objects_being_written", lot.usage.self_objects_being_written, deltaMode);
if (!rp_bool_str.first) {
std::string int_err = rp_bool_str.second;
std::string ext_err = "Failure to update lot's self_GB: ";
std::string ext_err = "Failure to update lot's self_objects_being_written: ";
return std::make_pair(false, ext_err + int_err);
}
}
Expand Down

0 comments on commit c1819a0

Please sign in to comment.