src/error.c
changeset 37 4fe4a3c4496e
parent 31 98ea2bd59195
child 41 40f7aa051acb
--- a/src/error.c	Thu Mar 12 18:08:27 2009 +0200
+++ b/src/error.c	Thu Mar 12 18:11:44 2009 +0200
@@ -10,6 +10,7 @@
 
 struct error_desc _core_error_desc[] = {
     {   ERR_CALLOC,                         "calloc",                                   ERR_EXTRA_NONE      },
+    {   ERR_STRDUP,                         "strdup",                                   ERR_EXTRA_NONE      },
     {   ERR_GETADDRINFO,                    "getaddrinfo",                              ERR_EXTRA_GAI       },
     {   ERR_GETADDRINFO_EMPTY,              "getaddrinfo: no results",                  ERR_EXTRA_NONE      },
     {   ERR_EVENT_NEW,                      "event_new",                                ERR_EXTRA_NONE      },
@@ -39,6 +40,12 @@
     {   ERR_GNUTLS_RECORD_GET_DIRECTION,    "gnutls_record_get_direction",              ERR_EXTRA_GNUTLS    },
     {   _ERR_INVALID,                       NULL,                                       0                   }
 
+}, _irc_proto_error_desc[] = {
+    {   ERR_LINE_TOO_LONG,                  "IRC line is too long",                     ERR_EXTRA_NONE      },
+    {   ERR_LINE_INVALID_TOKEN,             "Illegal token value for IRC line",         ERR_EXTRA_NONE      },
+    {   ERR_INVALID_NM,                     "Invalid nickmask",                         ERR_EXTRA_NONE      },
+    {   ERR_INVALID_NICK_LENGTH,            "Nickname is too long",                     ERR_EXTRA_NONE      },
+    {   _ERR_INVALID,                       NULL,                                       0                   }
 };
 
 /**
@@ -48,6 +55,7 @@
     _core_error_desc,
     _sock_error_desc,
     _sock_gnutls_error_desc,
+    _irc_proto_error_desc,
     NULL
 };