macro processor: fix error messages

issue#70
Houtan Bastani 2019-08-06 11:31:56 -04:00
parent 6cc56430a3
commit 72c216fd7c
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 3 additions and 3 deletions

View File

@ -306,7 +306,7 @@ String::cast_bool() const
}
catch (...)
{
throw StackTrace(value + " cannot be converted to a boolean");
throw StackTrace(R"(")" + value + R"(" cannot be converted to a boolean)");
}
}
@ -319,7 +319,7 @@ String::cast_int() const
}
catch (...)
{
throw StackTrace(value + " cannot be converted to an int");
throw StackTrace(R"(")" + value + R"(" cannot be converted to an int)");
}
}
@ -332,7 +332,7 @@ String::cast_double() const
}
catch (...)
{
throw StackTrace(value + " cannot be converted to a double");
throw StackTrace(R"(")" + value + R"(" cannot be converted to a double)");
}
}