No need to include stdbool.h separately
[apps/agl-service-can-low-level.git] / tests / test_encode2.c
index b1105ce..fd25c6c 100644 (file)
@@ -26,7 +26,12 @@ int main()
     
     /* Now encode it and check if we succeeded. */
     if (pb_encode(&stream, Person_fields, &person))
+    {
         return 0; /* Success */
+    }
     else
+    {
+        fprintf(stderr, "Encoding failed: %s\n", PB_GET_ERROR(&stream));
         return 1; /* Failure */
+    }
 }