From 6441cd786d8f26b6f277be6478e9f674f01aea5a Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 18 Jul 2018 13:43:19 +0100 Subject: [PATCH] ECC-723: bufr_dump: option '-f' should dump header if unpack fails --- tools/bufr_dump.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/bufr_dump.c b/tools/bufr_dump.c index b4d3de82e..40d7bd3c4 100644 --- a/tools/bufr_dump.c +++ b/tools/bufr_dump.c @@ -281,7 +281,7 @@ int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h) } else { fprintf(stdout,"\"ERROR: unable to unpack data section\""); options->error=err; - return err; + /*return err; See ECC-723*/ } } a=grib_find_accessor(h,"numericValues"); @@ -299,7 +299,7 @@ int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h) } else { fprintf(stdout,"\"ERROR: unable to unpack data section\""); options->error=err; - return err; + /*return err; See ECC-723*/ } } grib_dump_content(h,stdout,options->dump_mode,options->dump_flags,0); @@ -314,7 +314,7 @@ int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h) } else { fprintf(stdout,"\"ERROR: unable to unpack data section\""); options->error=err; - return err; + /*return err; See ECC-723*/ } } options->dump_flags=GRIB_DUMP_FLAG_ALL_ATTRIBUTES; @@ -338,9 +338,9 @@ int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h) fprintf(stderr, "ERROR: unable to unpack data section: %s\n",grib_get_error_message(err)); exit(err); } else { - fprintf(stdout,"\"ERROR: unable to unpack data section\""); + fprintf(stdout,"ERROR: unable to unpack data section\n"); options->error=err; - return err; + /*return err; See ECC-723*/ } } grib_dump_content(h,stdout,options->dump_mode,options->dump_flags,0); @@ -354,7 +354,7 @@ int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h) } else { fprintf(stdout,"\"ERROR: unable to unpack data section\""); options->error=err; - return err; + /*return err; See ECC-723*/ } } print_header(options);