From 3b3d4fd4f843f1391b0b6e4e96c4188bde964159 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sun, 12 Jan 2025 10:58:27 -0600 Subject: [PATCH] catch on the same line --- src/game/boe.main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/game/boe.main.cpp b/src/game/boe.main.cpp index bcb03315..955bf266 100644 --- a/src/game/boe.main.cpp +++ b/src/game/boe.main.cpp @@ -121,8 +121,7 @@ struct cParseLocation { try{ opt = boost::lexical_cast(v); return ParserResult::ok( ParseResultType::Matched ); - } - catch(boost::bad_lexical_cast){ + }catch(boost::bad_lexical_cast){ return ParserResult::logicError( "Invalid location: '" + v + "'. Try 'x,y' format."); } }