aboutsummaryrefslogtreecommitdiffstats
path: root/example_unions/decode.c
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-08-24 21:22:20 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-08-24 21:22:20 +0300
commit0fb5e5e068326b23493952619d7efb640cb37377 (patch)
tree3f3bbb7e05c6c17984b13ab87104c235a61f22fd /example_unions/decode.c
parentea57f74741b5b5ab3ab4a3e81d8b61811417b4c6 (diff)
Implement error messages in the decoder side.
Update issue 7 Status: Started
Diffstat (limited to 'example_unions/decode.c')
-rw-r--r--example_unions/decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example_unions/decode.c b/example_unions/decode.c
index d40cd8ce..b9f4af55 100644
--- a/example_unions/decode.c
+++ b/example_unions/decode.c
@@ -85,7 +85,7 @@ int main()
if (!status)
{
- printf("Decoding failed.\n");
+ printf("Decode failed: %s\n", PB_GET_ERROR(&stream));
return 1;
}