Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[surf] Remove sg_trace_connect_cb
[simgrid.git] / src / bindings / lua / lua_utils.c
index 444f15d..914e667 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2012. The SimGrid Team.
+/* Copyright (c) 2010-2014. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -167,7 +167,7 @@ void* sglua_checkudata_debug(lua_State* L, int ud, const char* tname)
   sglua_stack_dump("my_checkudata: ", L);
 
   if (p == NULL || !lua_getmetatable(L, ud) || !lua_rawequal(L, -1, -2))
-    luaL_typerror(L, ud, tname);
+    XBT_ERROR("Error: Userdata is NULL, couldn't find metatable or top of stack does not equal element below it.");
   lua_pop(L, 2);
   return p;
 }