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 --- tests/test_decode2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_decode2.c') diff --git a/tests/test_decode2.c b/tests/test_decode2.c index d38e625..762b2b3 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; -- cgit 1.2.3-korg