Skip to content
Snippets Groups Projects
Commit 685a9659 authored by Jan Reher's avatar Jan Reher
Browse files

Fixed problem with exception handling

parent 3341e461
No related branches found
No related tags found
2 merge requests!4Many proven updates being brought into stable branch.,!3Commented in the lines in apdUnitCreator.cpp that do the actual database
Pipeline #1604 failed with stages
in 2 seconds
......@@ -54,7 +54,7 @@ int main(int argc, char* argv[]) {
std::string capsuleSerial = newUnit->blueSerial + "/" + newUnit->redSerial;
proddb->createApdUnit(capsuleSerial, newUnit->crystalSerial, newUnit->barCode);
}
catch (std::exception e) {
catch (std::exception &e) {
nFailed++;
std::cerr << "An error occurred on APD paid with red APD " << newUnit->redSerial << " and blue APD " << newUnit->blueSerial << "!" << std::endl;
std::cerr << e.what() << std::endl << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment