Skip to content

Commit

Permalink
Revert "Do not throw runtime error on parsing error"
Browse files Browse the repository at this point in the history
This reverts commit 5e2cd0d.
  • Loading branch information
UsualSpec committed Jul 15, 2024
1 parent 5e2cd0d commit 956049c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,7 @@ bool AutopowerClient::streamMeasurementData(std::string measId) {
if (!couldParseTs) {
delete gTimestamp;
uploadWasSuccessful = false;
// throw std::runtime_error("Could not parse timestamp: " + ts);
break;
throw std::runtime_error("Could not parse timestamp: " + ts);
}

grpcMsmtSample.set_allocated_msmttime(gTimestamp); // grpc will free the object itself, so NO need to call free!
Expand Down

0 comments on commit 956049c

Please sign in to comment.