console.add_command arguments validation

This commit is contained in:
MihailRis 2024-05-17 02:39:33 +03:00
parent d0b7dec225
commit 8d6f52c1fa
3 changed files with 6 additions and 2 deletions

View file

@ -356,7 +356,7 @@ dynamic::Value lua::LuaState::tovalue(int idx) {
}
default:
throw std::runtime_error(
"lua type "+std::to_string(type)+" is not supported"
"lua type "+std::string(luaL_typename(L, type))+" is not supported"
);
}
}