fix fatal error on wrong placement args
This commit is contained in:
@@ -196,6 +196,7 @@ public:
|
||||
|
||||
stackguard _(L);
|
||||
pushenv(L, *env);
|
||||
try {
|
||||
if (getfield(L, "place_structures_wide")) {
|
||||
pushivec_stack(L, offset);
|
||||
pushivec_stack(L, size);
|
||||
@@ -212,6 +213,9 @@ public:
|
||||
pop(L);
|
||||
}
|
||||
}
|
||||
} catch (const std::runtime_error& err) {
|
||||
logger.error() << err.what();
|
||||
}
|
||||
return placements;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user