Update for newer base libraries, improves error messages.
This commit is contained in:
@@ -26,7 +26,13 @@ public:
|
||||
|
||||
_env->CollectGarbage();
|
||||
if (e == asEXECUTION_EXCEPTION) {
|
||||
_errorMessage = ctx->GetExceptionString();
|
||||
std::stringstream error;
|
||||
const char* exceptionSection = "";
|
||||
int exceptionColumn = 0;
|
||||
auto exceptionLine = ctx->GetExceptionLineNumber(&exceptionColumn, &exceptionSection);
|
||||
error << "[" << exceptionSection << ":" << exceptionLine << "," << exceptionColumn << "] "
|
||||
<< ctx->GetExceptionString();
|
||||
_errorMessage = error.str();
|
||||
_result = TestResult::Failed;
|
||||
ctx->PopState();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user