fix fatal error on wrong placement args

This commit is contained in:
MihailRis
2024-10-19 05:33:59 +03:00
parent cd949126b2
commit 6e6f9616cd
@@ -196,6 +196,7 @@ public:
stackguard _(L); stackguard _(L);
pushenv(L, *env); pushenv(L, *env);
try {
if (getfield(L, "place_structures_wide")) { if (getfield(L, "place_structures_wide")) {
pushivec_stack(L, offset); pushivec_stack(L, offset);
pushivec_stack(L, size); pushivec_stack(L, size);
@@ -212,6 +213,9 @@ public:
pop(L); pop(L);
} }
} }
} catch (const std::runtime_error& err) {
logger.error() << err.what();
}
return placements; return placements;
} }