diff options
author | Linus Nordberg <linus@nordberg.se> | 2012-12-17 16:07:16 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2012-12-17 16:07:16 +0100 |
commit | 5b117878698519e798f928cef18eafc9dad4c15a (patch) | |
tree | 15955ebc883ca46c90416cac7a68d838963e8636 /lib/examples | |
parent | a21be6733bfe23998f3aaec00d87d35fe0f1aefa (diff) |
Example code: Print a little bit more helpful information on failure.
Diffstat (limited to 'lib/examples')
-rw-r--r-- | lib/examples/client-blocking.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/examples/client-blocking.c b/lib/examples/client-blocking.c index 7ba71a0..1b77de3 100644 --- a/lib/examples/client-blocking.c +++ b/lib/examples/client-blocking.c @@ -125,7 +125,7 @@ main (int argc, char *argv[]) err = blocking_client (argv[1], argv[2], use_request_object_flag); if (err) { - fprintf (stderr, "%s\n", rs_err_msg (err)); + fprintf (stderr, "error: %s: %d\n", rs_err_msg (err), rs_err_code (err, 0)); return rs_err_code (err, 1); } return 0; |