summaryrefslogtreecommitdiff
path: root/lib/examples
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2012-12-17 16:07:16 +0100
committerLinus Nordberg <linus@nordberg.se>2012-12-17 16:07:16 +0100
commit5b117878698519e798f928cef18eafc9dad4c15a (patch)
tree15955ebc883ca46c90416cac7a68d838963e8636 /lib/examples
parenta21be6733bfe23998f3aaec00d87d35fe0f1aefa (diff)
Example code: Print a little bit more helpful information on failure.
Diffstat (limited to 'lib/examples')
-rw-r--r--lib/examples/client-blocking.c2
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;