Skip to content

Commit

Permalink
Fix stacktrace printing for coroutines
Browse files Browse the repository at this point in the history
  • Loading branch information
edo9300 committed Feb 2, 2024
1 parent acaa99b commit 4a2e89f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ int32_t interpreter::call_coroutine(int32_t f, uint32_t param_count, lua_Integer
if(result == LUA_YIELD)
return COROUTINE_YIELD;
if(result != LUA_OK) {
print_stacktrace(current_state);
print_stacktrace(rthread);
pduel->handle_message(lua_get_string_or_empty(rthread, -1), OCG_LOG_TYPE_ERROR);
} else if(yield_value) {
if(nresults == 0)
Expand Down

0 comments on commit 4a2e89f

Please sign in to comment.