Skip to content

Commit 3ba48b4

Browse files
committed
Improve error message for conversion
1 parent 8b2ebe5 commit 3ba48b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/common/include/s25util/StringConversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ inline T fromStringClassic(const std::string& value, bool fromHex = false)
8585
{
8686
T outVal;
8787
if(!tryFromStringClassic(value, outVal, fromHex))
88-
throw ConversionError("Could not convert " + value);
88+
throw ConversionError("Could not convert '" + value + "'");
8989
return outVal;
9090
}
9191

0 commit comments

Comments
 (0)