Commit 2b37b2c4 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdf_put_att_double(): changed error message

parent 588c6752
......@@ -729,7 +729,7 @@ void cdf_put_att_double(int ncid, int varid, const char *name, nc_type xtype,
status = nc_put_att_double(ncid, varid, name, xtype, len, dp);
if ( CDF_Debug || status != NC_NOERR )
Message("%d %d %f", ncid, varid, *dp);
Message("ncid = %d varid = %d att = %s val = %g", ncid, varid, name, *dp);
if ( status != NC_NOERR ) Error("%s", nc_strerror(status));
}
......@@ -782,8 +782,7 @@ void cdf_get_att_double(int ncid, int varid, const char *name, double *dp)
status = nc_get_att_double(ncid, varid, name, dp);
if ( CDF_Debug || status != NC_NOERR )
Message("ncid = %d varid = %d att = %s val = %.9g",
ncid, varid, name, *dp);
Message("ncid = %d varid = %d att = %s val = %.9g", ncid, varid, name, *dp);
if ( status != NC_NOERR ) Error("%s", nc_strerror(status));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment