From 10ad8dc9da4a73eb4ad2895b3d1dcc104c48f68a Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sun, 28 Jul 2024 14:41:23 -0500 Subject: [PATCH] throw std::strings --- src/tools/replay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/replay.cpp b/src/tools/replay.cpp index 68e28c2c7..c103afdda 100644 --- a/src/tools/replay.cpp +++ b/src/tools/replay.cpp @@ -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;