mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
detailed error message
This commit is contained in:
parent
7536ac2736
commit
c6d8035f3b
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ static int l_spawn(lua::State* L) {
|
|||
auto level = controller->getLevel();
|
||||
auto defname = lua::tostring(L, 1);
|
||||
if (defname == nullptr) {
|
||||
throw std::runtime_error("invalid string");
|
||||
throw std::runtime_error("string expected, got nil");
|
||||
}
|
||||
auto& def = content->entities.require(defname);
|
||||
auto pos = lua::tovec3(L, 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue