From 6b1412cb72248ab7b0863b5f0f65b42d0f3f180e Mon Sep 17 00:00:00 2001 From: linus Date: Thu, 20 Jan 2011 17:28:12 +0100 Subject: [PATCH] Improve error message. Differentiate between an invalid connection type string in config file when parsing and unknown connection type (number) when connecting. --- lib/packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/packet.c b/lib/packet.c index 7644646..0b879d2 100644 --- a/lib/packet.c +++ b/lib/packet.c @@ -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); } -- 2.1.4