Skip to content

Commit

Permalink
Fixing bug in error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
krulis-martin committed Feb 23, 2024
1 parent 7ea62e7 commit a2deacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GenericTester/dataio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ logtime_t loadInputData(std::istream& sin, FunshieldSimulationController& funshi
}

if (button < 1 || button > 3 || (action != 'u' && action != 'd')) {
throw std::runtime_error("Invalid operation (button #" + std::to_string(button) + " action " + std::to_string(action)
throw std::runtime_error("Invalid operation (button #" + std::to_string(button) + " action " + action
+ ") found at line " + std::to_string(lineCount));
}
--button; // normalize to zero-based index
Expand Down

0 comments on commit a2deacc

Please sign in to comment.