Skip to content

Commit

Permalink
throw std::strings
Browse files Browse the repository at this point in the history
  • Loading branch information
NQNStudios authored and CelticMinstrel committed Jul 28, 2024
1 parent 4e1c228 commit 10ad8dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ bool has_next_action() {

std::string next_action_type() {
if(next_action == nullptr){
throw "Replay error! No action left to check type";
throw std::string { "Replay error! No action left to check type" };
}
return next_action->Value();
}

Element& pop_next_action(std::string expected_action_type) {
if(next_action == nullptr){
throw "Replay error! No action left to pop";
throw std::string { "Replay error! No action left to pop" };
}
if(expected_action_type != "" && next_action->Value() != expected_action_type){
std::ostringstream stream;
Expand Down

0 comments on commit 10ad8dc

Please sign in to comment.