src/error.c
changeset 106 f00661136ac2
parent 100 cfb7776bd6f0
child 108 50ff7ac8a725
equal deleted inserted replaced
105:b6b183fbf373 106:f00661136ac2
    75     {   ERR_MODULE_INIT_FUNC,               "invalid module init func",                 ERR_EXTRA_STR       },
    75     {   ERR_MODULE_INIT_FUNC,               "invalid module init func",                 ERR_EXTRA_STR       },
    76     {   ERR_MODULE_CONF,                    "module_conf",                              ERR_EXTRA_STR       },
    76     {   ERR_MODULE_CONF,                    "module_conf",                              ERR_EXTRA_STR       },
    77     {   _ERR_INVALID,                       NULL,                                       0                   }
    77     {   _ERR_INVALID,                       NULL,                                       0                   }
    78 
    78 
    79 }, _lua_error_desc[] = {
    79 }, _lua_error_desc[] = {
    80     {   ERR_LUA_MEM,                        "lua: out of memory",                       ERR_EXTRA_NONE      },
    80     {   ERR_LUA_MEM,                        "lua: out of memory",                       ERR_EXTRA_STR       },
    81     {   ERR_LUA_SYNTAX,                     "lua: syntax error",                        ERR_EXTRA_NONE      },
    81     {   ERR_LUA_SYNTAX,                     "lua: syntax error",                        ERR_EXTRA_STR       },
    82     {   ERR_LUA_RUN,                        "lua: runtime error",                       ERR_EXTRA_NONE      },
    82     {   ERR_LUA_RUN,                        "lua: runtime error",                       ERR_EXTRA_STR       },
    83     {   ERR_LUA_ERR,                        "lua: error handling error",                ERR_EXTRA_NONE      },
    83     {   ERR_LUA_ERR,                        "lua: error handling error",                ERR_EXTRA_STR       },
       
    84     {   ERR_LUA_FILE,                       "lua: error loading file",                  ERR_EXTRA_STR       },
    84     {   _ERR_INVALID,                       NULL,                                       0                   }
    85     {   _ERR_INVALID,                       NULL,                                       0                   }
    85 };
    86 };
    86 
    87 
    87 /**
    88 /**
    88  * Array of error_desc tables
    89  * Array of error_desc tables