From 560e10f6d97edd5ab76d2cab9baf8b539cb81380 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 15 Dec 2023 13:44:12 +0000 Subject: [PATCH] Error messages --- src/eccodes.h | 2 +- src/grib_api.h | 2 +- src/grib_errors.cc | 2 +- src/grib_errors.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/eccodes.h b/src/eccodes.h index b4db4406a..268bf4319 100644 --- a/src/eccodes.h +++ b/src/eccodes.h @@ -1527,7 +1527,7 @@ Error codes returned by the eccodes functions. #define CODES_WRONG_STEP_UNIT GRIB_WRONG_STEP_UNIT /** Invalid file id */ #define CODES_INVALID_FILE GRIB_INVALID_FILE -/** Invalid grib id */ +/** Invalid GRIB id */ #define CODES_INVALID_GRIB GRIB_INVALID_GRIB /** Invalid index id */ #define CODES_INVALID_INDEX GRIB_INVALID_INDEX diff --git a/src/grib_api.h b/src/grib_api.h index 21e605baa..998122eb0 100644 --- a/src/grib_api.h +++ b/src/grib_api.h @@ -1658,7 +1658,7 @@ Error codes returned by the grib_api functions. #define GRIB_WRONG_STEP_UNIT -26 /** Invalid file id */ #define GRIB_INVALID_FILE -27 -/** Invalid grib id */ +/** Invalid GRIB id */ #define GRIB_INVALID_GRIB -28 /** Invalid index id */ #define GRIB_INVALID_INDEX -29 diff --git a/src/grib_errors.cc b/src/grib_errors.cc index ac61a6154..d94b5f845 100644 --- a/src/grib_errors.cc +++ b/src/grib_errors.cc @@ -40,7 +40,7 @@ static const char *errors[] = { "Unable to set step", /* -25 GRIB_WRONG_STEP */ "Wrong units for step (step must be integer)", /* -26 GRIB_WRONG_STEP_UNIT */ "Invalid file id", /* -27 GRIB_INVALID_FILE */ -"Invalid grib id", /* -28 GRIB_INVALID_GRIB */ +"Invalid GRIB id", /* -28 GRIB_INVALID_GRIB */ "Invalid index id", /* -29 GRIB_INVALID_INDEX */ "Invalid iterator id", /* -30 GRIB_INVALID_ITERATOR */ "Invalid keys iterator id", /* -31 GRIB_INVALID_KEYS_ITERATOR */ diff --git a/src/grib_errors.txt b/src/grib_errors.txt index 6019f6601..bc521bcce 100644 --- a/src/grib_errors.txt +++ b/src/grib_errors.txt @@ -29,7 +29,7 @@ GRIB_WRONG_STEP Unable to set step GRIB_WRONG_STEP_UNIT Wrong units for step (step must be integer) /* some errors for the fortran interface */ GRIB_INVALID_FILE Invalid file id -GRIB_INVALID_GRIB Invalid grib id +GRIB_INVALID_GRIB Invalid GRIB id GRIB_INVALID_INDEX Invalid index id GRIB_INVALID_ITERATOR Invalid iterator id GRIB_INVALID_KEYS_ITERATOR Invalid keys iterator id