Skip to content

Commit

Permalink
[lua.state] more error diagnostic if unknown generic is retrieved fro…
Browse files Browse the repository at this point in the history
…m stack
  • Loading branch information
harrand committed Mar 9, 2024
1 parent cc6b3db commit e655538
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tz/lua/state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,10 @@ namespace tz::lua
}
else
{
tz::error("Unrecognised generic");
#if TZ_DEBUG
std::string stack = this->collect_stack();
tz::error("Unrecognised generic at stack index %zu. Stack: %s", idx, stack.c_str());
#endif
}
return ret;
}
Expand Down

0 comments on commit e655538

Please sign in to comment.