Fix code issue

pull/3707/head
Malcolm Tyrrell 2021-03-15 16:46:41 +00:00
parent 8d86bcf0fb
commit e4983aa16e
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ inline void throwUnexpectedTypeError(const char (&expectedTypeName)[N], const ch
std::string fullContext = context;
if (extraContext && (strlen(extraContext) > 0))
{
fullContext += " (", extraContext, ")";
fullContext = fullContext + " (" + extraContext + ")";
}
throw DeadlyImportError("Member \"", memberId, "\" was not of type \"", expectedTypeName, "\" when reading ", fullContext);
}