Fix bad string concatenation in a json parse error message

Originally committed to SVN as r6559.
This commit is contained in:
Thomas Goyne 2012-03-10 02:16:20 +00:00
parent 759b8433c1
commit 12511901a9
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ void Reader::MatchString(std::string& string, InputStream& inputStream) {
case 't': string.push_back('\t'); break;
case 'u': // TODO: what do we do with this?
default:
throw ScanException("Unrecognized escape sequence found in string: \\" + c, inputStream.GetLocation());
throw ScanException(std::string("Unrecognized escape sequence found in string: \\") + c, inputStream.GetLocation());
}
}
else {