diff options
Diffstat (limited to 'NorthstarDLL/scripts')
-rw-r--r-- | NorthstarDLL/scripts/scriptjson.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/NorthstarDLL/scripts/scriptjson.cpp b/NorthstarDLL/scripts/scriptjson.cpp index 98cb52d6..06bda6f4 100644 --- a/NorthstarDLL/scripts/scriptjson.cpp +++ b/NorthstarDLL/scripts/scriptjson.cpp @@ -212,10 +212,12 @@ ADD_SQFUNC( doc.GetErrorOffset()); if (bFatalParseErrors) + { g_pSquirrel<context>->raiseerror(sqvm, sErrorString.c_str()); - else - spdlog::warn(sErrorString); + return SQRESULT_ERROR; + } + spdlog::warn(sErrorString); return SQRESULT_NOTNULL; } |