Change assertion failure to a error
Merge branch 'master' of https://github.com/Unidata/netcdf-c