catch on the same line

This commit is contained in:
2025-01-12 10:58:27 -06:00
committed by Celtic Minstrel
parent 1bf9c71865
commit 3b3d4fd4f8

View File

@@ -121,8 +121,7 @@ struct cParseLocation {
try{
opt = boost::lexical_cast<location>(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.");
}
}