fix(script_error): error type
This commit is contained in:
parent
5b069d4c16
commit
f099c95975
@ -104,7 +104,7 @@ namespace gsc
|
|||||||
void compile_error_stub(const char* code_pos, [[maybe_unused]] const char* msg)
|
void compile_error_stub(const char* code_pos, [[maybe_unused]] const char* msg)
|
||||||
{
|
{
|
||||||
get_unknown_function_error(code_pos);
|
get_unknown_function_error(code_pos);
|
||||||
game::native::Com_Error(game::native::ERR_DROP, "script link error\n%s", unknown_function_error.data());
|
game::native::Com_Error(game::native::ERR_SCRIPT_DROP, "script link error\n%s", unknown_function_error.data());
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int find_variable_stub(unsigned int parent_id, unsigned int thread_name)
|
unsigned int find_variable_stub(unsigned int parent_id, unsigned int thread_name)
|
||||||
@ -113,7 +113,7 @@ namespace gsc
|
|||||||
if (!res)
|
if (!res)
|
||||||
{
|
{
|
||||||
get_unknown_function_error(thread_name);
|
get_unknown_function_error(thread_name);
|
||||||
game::native::Com_Error(game::native::ERR_DROP, "script link error\n%s", unknown_function_error.data());
|
game::native::Com_Error(game::native::ERR_SCRIPT_DROP, "script link error\n%s", unknown_function_error.data());
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
@ -124,7 +124,7 @@ namespace gsc
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
const auto index = gsc_ctx->opcode_enum(opcode);
|
const auto index = gsc_ctx->opcode_enum(opcode);
|
||||||
return {gsc_ctx->opcode_name(index)};
|
return { gsc_ctx->opcode_name(index) };
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user