From 0fb5e5e068326b23493952619d7efb640cb37377 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Fri, 24 Aug 2012 21:22:20 +0300 Subject: Implement error messages in the decoder side. Update issue 7 Status: Started --- example/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/client.c') diff --git a/example/client.c b/example/client.c index 9ad9c8c9..edc83948 100644 --- a/example/client.c +++ b/example/client.c @@ -72,7 +72,7 @@ bool listdir(int fd, char *path) if (!pb_decode(&input, ListFilesResponse_fields, &response)) { - fprintf(stderr, "Decoding failed.\n"); + fprintf(stderr, "Decode failed: %s\n", PB_GET_ERROR(&input)); return false; } -- cgit 1.2.3-korg