Improve error message.
authorlinus <linus@nordu.net>
Thu, 20 Jan 2011 16:28:12 +0000 (17:28 +0100)
committerlinus <linus@nordu.net>
Thu, 20 Jan 2011 16:28:12 +0000 (17:28 +0100)
Differentiate between an invalid connection type string in config file
when parsing and unknown connection type (number) when connecting.

lib/packet.c

index 7644646..0b879d2 100644 (file)
@@ -362,7 +362,7 @@ _init_bev (struct rs_connection *conn, struct rs_peer *peer)
 #endif /* RS_ENABLE_TLS */
     default:
       return rs_err_conn_push_fl (conn, RSE_INTERNAL, __FILE__, __LINE__,
-                                 "%s: invalid connection type: %d", __func__,
+                                 "%s: unknown connection type: %d", __func__,
                                  conn->type);
     }