diff --git a/src/logic/scripting/lua/libs/libentity.cpp b/src/logic/scripting/lua/libs/libentity.cpp index 46efdff0f..80f7cc4cf 100644 --- a/src/logic/scripting/lua/libs/libentity.cpp +++ b/src/logic/scripting/lua/libs/libentity.cpp @@ -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);