diff options
Diffstat (limited to 'epan/wslua/wslua_internals.c')
-rw-r--r-- | epan/wslua/wslua_internals.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/wslua/wslua_internals.c b/epan/wslua/wslua_internals.c index a00d37d2c2..186d6fa593 100644 --- a/epan/wslua/wslua_internals.c +++ b/epan/wslua/wslua_internals.c @@ -445,7 +445,7 @@ static void wslua_push_attributes(lua_State *L, const wslua_attribute_table *t, if (methods_idx) { lua_rawgetfield(L, methods_idx, t->fieldname); if (!lua_isnil(L, -1)) { - g_error("'%s' attribute name already exists as method name for class\n", t->fieldname); + ws_error("'%s' attribute name already exists as method name for class\n", t->fieldname); } lua_pop(L,1); /* pop the nil */ } @@ -541,7 +541,7 @@ void wslua_register_class(lua_State *L, const wslua_class *cls_def) /* Check for existing global variables/classes with the same name. */ lua_getglobal(L, cls_def->name); if (!lua_isnil (L, -1)) { - g_error("Attempt to register class '%s' which already exists in global Lua table\n", cls_def->name); + ws_error("Attempt to register class '%s' which already exists in global Lua table\n", cls_def->name); } lua_pop(L, 1); |