Add error-check for yield-in-pcall to traceback_pcall
This commit is contained in:
@@ -304,7 +304,6 @@ eng::string World::probe_lua(int64_t actor_id, const eng::string &lua) {
|
||||
(*ostream) << std::endl;
|
||||
}
|
||||
} else {
|
||||
assert(msg != "attempt to yield from outside a coroutine");
|
||||
(*ostream) << msg << std::endl;
|
||||
}
|
||||
|
||||
@@ -366,7 +365,6 @@ void World::update_gui(int64_t actor_id, int64_t place_id, Gui *gui) {
|
||||
Gui::store_global_pointer(L, nullptr);
|
||||
if (!msg.empty()) {
|
||||
gui->clear(0);
|
||||
assert(msg != "attempt to yield from outside a coroutine");
|
||||
std::cerr << msg << std::endl;
|
||||
LS.result();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user