summaryrefslogtreecommitdiff
path: root/indra/lscript/lscript_compile/lscript_error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/lscript/lscript_compile/lscript_error.cpp')
-rw-r--r--indra/lscript/lscript_compile/lscript_error.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/lscript/lscript_compile/lscript_error.cpp b/indra/lscript/lscript_compile/lscript_error.cpp
index 309eb07dc2..5299d8c7e9 100644
--- a/indra/lscript/lscript_compile/lscript_error.cpp
+++ b/indra/lscript/lscript_compile/lscript_error.cpp
@@ -72,7 +72,10 @@ const char* gErrorText[LSERROR_EOF] = /*Flawfinder: ignore*/
"Use of vector or quaternion method on incorrect type",
"Lists can't be included in lists",
"Unitialized variables can't be included in lists",
- "Declaration requires a new scope -- use { and }"
+ "Declaration requires a new scope -- use { and }",
+ "CIL assembler failed",
+ "Bytecode transformer failed",
+ "Bytecode verification failed"
};
void LLScriptGenerateErrorText::writeWarning(LLFILE *fp, LLScriptFilePosition *pos, LSCRIPTWarnings warning)
@@ -98,3 +101,8 @@ void LLScriptGenerateErrorText::writeError(LLFILE *fp, S32 line, S32 col, LSCRIP
fprintf(fp, "(%d, %d) : ERROR : %s\n", line, col, gErrorText[error]);
mTotalErrors++;
}
+
+std::string getLScriptErrorString(LSCRIPTErrors error)
+{
+ return gErrorText[error];
+}