src/error.c
branchmodules
changeset 55 6f7f6ae729d0
parent 41 40f7aa051acb
child 56 942370000450
--- a/src/error.c	Fri Mar 13 17:38:23 2009 +0200
+++ b/src/error.c	Sun Mar 15 01:17:22 2009 +0200
@@ -4,6 +4,7 @@
 // for the error_desc tables
 #include "sock.h"
 #include "sock_gnutls.h"
+#include "module.h"
 
 #include <string.h>
 #include <stdio.h>
@@ -46,6 +47,11 @@
     {   ERR_INVALID_NM,                     "Invalid nickmask",                         ERR_EXTRA_NONE      },
     {   ERR_INVALID_NICK_LENGTH,            "Nickname is too long",                     ERR_EXTRA_NONE      },
     {   _ERR_INVALID,                       NULL,                                       0                   }
+}, _module_error_desc[] = {
+    {   ERR_MODULE_OPEN,                    "module dlopen() failed",                   ERR_EXTRA_NONE      },
+    {   ERR_MODULE_NAME,                    "invalid module name",                      ERR_EXTRA_NONE      },
+    {   ERR_MODULE_INIT_FUNC,               "invalid module init func",                 ERR_EXTRA_NONE      },
+    {   _ERR_INVALID,                       NULL,                                       0                   }
 };
 
 /**
@@ -56,6 +62,7 @@
     _sock_error_desc,
     _sock_gnutls_error_desc,
     _irc_proto_error_desc,
+    _module_error_desc,
     NULL
 };