diff options
author | linus <linus@nordu.net> | 2011-01-20 17:28:12 +0100 |
---|---|---|
committer | linus <linus@nordu.net> | 2011-01-20 17:28:12 +0100 |
commit | 6b1412cb72248ab7b0863b5f0f65b42d0f3f180e (patch) | |
tree | 4a48817eaa23ee028ca342b4aeec9efae0f6d948 | |
parent | fb3c040c7b5fcf1a3446a36f0e6cea3ccfeebbda (diff) |
Improve error message.
Differentiate between an invalid connection type string in config file
when parsing and unknown connection type (number) when connecting.
-rw-r--r-- | lib/packet.c | 2 |
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); } |