ncmpi_sterror: slight behavior change.

Rob Latham robl at mcs.anl.gov
Tue Jun 19 10:20:42 CDT 2012


On Mon, Jun 18, 2012 at 10:57:38AM -0500, Rob Latham wrote:
> If someone passes in a bogus error code, serial netcdf returns the
> string "Unknown Error". 
> 
> We used to do that but decided it would be better to have a more
> helpful error message:
> 
> "Unrecognized pnetcdf error code: ID" (where ID is the unrecognized
> error id).
> 
> I just wanted to double check with the wider pnetcdf community that
> such a change in behavior would be OK.  It's sort of a programming
> interface change, but I hope no one (or more accurately, no computer
> program or testing script) was looking for a literal "Unknown Error"
> from ncmpi_error.

Wei-keng had a good idea: we'll maintain the "Unknown Error" string
but then append "Unrecognized PnetCDF error code: ID" to it.  Won't
help scripts expecting the regular expression ^Unknown Error$ but will
if those scripts expect ^Unknown Error 

==rob

-- 
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA


More information about the parallel-netcdf mailing list