Update for newer base libraries, improves error messages.
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is passing

This commit is contained in:
2021-10-30 16:08:42 +02:00
parent 7342cf8a56
commit 42080a3c95
5 changed files with 10 additions and 9 deletions

View File

@@ -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;