Added error message for new error NC_ENULLPAD. [skip ci]

This commit is contained in:
Ward Fisher 2017-11-20 17:31:08 -07:00
parent cd3d5f8e0e
commit 2ab3e56747
2 changed files with 4 additions and 1 deletions

View File

@ -259,6 +259,8 @@ const char *nc_strerror(int ncerr1)
case NC_EMPI: return "NetCDF: MPI operation failed.";
case NC_ERCFILE:
return "NetCDF: RC File Failure.";
case NC_ENULLPAD:
return "NetCDF: File fails strict Null-Byte Header check.";
default:
#ifdef USE_PNETCDF
/* The behavior of ncmpi_strerror here is to return

View File

@ -1319,6 +1319,7 @@ char* nc_err_code_name(int err)
case (NC_EDISKLESS): return "NC_EDISKLESS";
case (NC_ECANTEXTEND): return "NC_ECANTEXTEND";
case (NC_EMPI): return "NC_EMPI";
case (NC_ENULLPAD): return "NC_NULLPAD";
// case (NC_EURL): return "NC_EURL";
// case (NC_ECONSTRAINT): return "NC_ECONSTRAINT";
#ifdef USE_PNETCDF