From f96369ccb3ddb9aa703089c7b9008b3c6b03dcbf Mon Sep 17 00:00:00 2001 From: shahramn Date: Tue, 12 Nov 2024 21:54:49 +0000 Subject: [PATCH] Cosmetics --- src/grib_accessor_class.cc | 6 +----- tools/codes_export_resource.cc | 3 ++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/grib_accessor_class.cc b/src/grib_accessor_class.cc index 762489961..98d247ff4 100644 --- a/src/grib_accessor_class.cc +++ b/src/grib_accessor_class.cc @@ -11,11 +11,7 @@ #include "grib_api_internal.h" #include "grib_accessor_classes_hash.cc" -#include -/* grib level */ - - -/* This file is generated by ./make_class.pl */ +//#include #include "accessor/grib_accessor.h" #if GRIB_PTHREADS diff --git a/tools/codes_export_resource.cc b/tools/codes_export_resource.cc index 98ba7712d..afb93cc9d 100644 --- a/tools/codes_export_resource.cc +++ b/tools/codes_export_resource.cc @@ -108,7 +108,8 @@ int main(int argc, char* argv[]) grib_context_free(c, full_path); if (read_count == 0) { - fprintf(stderr, "Error: Number of bytes read == 0. Please check the path refers to a file.\n"); + fprintf(stderr, "Error: Number of bytes read == 0. Please check the path refers to a regular %s file.\n", + (resource_type == SAMPLE) ? "sample" : "definition"); } else { printf("Resource exported to file '%s'.\n", out_file); }