summaryrefslogtreecommitdiff
path: root/lib/packet.c
diff options
context:
space:
mode:
authorlinus <linus@nordu.net>2011-01-20 17:28:12 +0100
committerlinus <linus@nordu.net>2011-01-20 17:28:12 +0100
commit6b1412cb72248ab7b0863b5f0f65b42d0f3f180e (patch)
tree4a48817eaa23ee028ca342b4aeec9efae0f6d948 /lib/packet.c
parentfb3c040c7b5fcf1a3446a36f0e6cea3ccfeebbda (diff)
Improve error message.
Differentiate between an invalid connection type string in config file when parsing and unknown connection type (number) when connecting.
Diffstat (limited to 'lib/packet.c')
-rw-r--r--lib/packet.c2
1 files changed, 1 insertions, 1 deletions
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);
}