diff options
Diffstat (limited to 'tests/test_vs_proto2.cc')
-rw-r--r-- | tests/test_vs_proto2.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_vs_proto2.cc b/tests/test_vs_proto2.cc index b22c620..a313aa5 100644 --- a/tests/test_vs_proto2.cc +++ b/tests/test_vs_proto2.cc @@ -188,8 +188,7 @@ void parse_and_compare(MESSAGE_CIDENT *proto2_msg, upb_msg_clear(upb_msg, upb_md); upb_strtomsg(str, len, upb_msg, upb_md, &status); if (!upb_ok(&status)) { - fprintf(stderr, "Error parsing test protobuf: "); - upb_status_print(&status, stderr); + fprintf(stderr, "Error parsing protobuf: %s", upb_status_getstr(&status)); exit(1); } string_size = 0; @@ -226,8 +225,8 @@ int main(int argc, char *argv[]) } upb_read_descriptor(symtab, fds, fds_len, &status); if(!upb_ok(&status)) { - fprintf(stderr, "Error importing " MESSAGE_DESCRIPTOR_FILE ": "); - upb_status_print(&status, stderr); + fprintf(stderr, "Error importing " MESSAGE_DESCRIPTOR_FILE ": %s", + upb_status_getstr(&status)); return 1; } free((void*)fds); |