diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2012-08-24 21:22:20 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2012-08-24 21:22:20 +0300 |
commit | 0fb5e5e068326b23493952619d7efb640cb37377 (patch) | |
tree | 3f3bbb7e05c6c17984b13ab87104c235a61f22fd /tests/test_decode2.c | |
parent | ea57f74741b5b5ab3ab4a3e81d8b61811417b4c6 (diff) |
Implement error messages in the decoder side.
Update issue 7
Status: Started
Diffstat (limited to 'tests/test_decode2.c')
-rw-r--r-- | tests/test_decode2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_decode2.c b/tests/test_decode2.c index d38e6256..762b2b3f 100644 --- a/tests/test_decode2.c +++ b/tests/test_decode2.c @@ -82,7 +82,7 @@ int main() pb_istream_t stream = {&callback, stdin, 10000}; if (!print_person(&stream)) { - printf("Parsing failed.\n"); + printf("Parsing failed: %s\n", PB_GET_ERROR(&stream)); return 1; } else { return 0; |