summaryrefslogtreecommitdiff
path: root/src/BLua.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/BLua.cc')
-rw-r--r--src/BLua.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/BLua.cc b/src/BLua.cc
index 886f92e..7e3a1d2 100644
--- a/src/BLua.cc
+++ b/src/BLua.cc
@@ -1140,10 +1140,13 @@ void Balau::LuaHelpersBase::validate(const lua_functypes_t & entry, bool method,
}
if (invalid) {
+ const char * name = entry.name;
+ if (!name)
+ name = "new";
if (method) {
- L.error(String("Invalid arguments to method `") + className + "::" + entry.name + "'");
+ L.error(String("Invalid arguments to method `") + className + "::" + name + "'");
} else {
- L.error(String("Invalid arguments to function `") + className + " " + entry.name + "'");
+ L.error(String("Invalid arguments to function `") + className + " " + name + "'");
}
}
}