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_decode1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_decode1.c') diff --git a/tests/test_decode1.c b/tests/test_decode1.c index 78781dd4..64eb4689 100644 --- a/tests/test_decode1.c +++ b/tests/test_decode1.c @@ -69,7 +69,7 @@ int main() /* Decode and print out the stuff */ 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