Skip to content

Commit

Permalink
Enhancement: Print NetCDF error description on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kwrobot committed Jan 9, 2025
1 parent baeb8ed commit 7622e69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion io/teca_netcdf_util.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,8 @@ int write_variable_attributes(int parent_id, int var_id,
var_id, att_name.c_str(), att_val.size()+1,
att_val.c_str())) != NC_NOERR)
{
TECA_ERROR("failed to put attribute \"" << att_name << "\"")
TECA_ERROR("failed to put attribute \"" << att_name << "\" "
<< nc_strerror(ierr))
}
#if !defined(HDF5_THREAD_SAFE)
}
Expand Down

0 comments on commit 7622e69

Please sign in to comment.