We can log more information about the errors. I sometimes encounter No such file or directory errors and have no idea which file couldn't be found. It would be good to add the provided path so that it's easier to fix the error. This doesn't have to be specific for the mentioned error, though. We should provide more information about any NetCDF-related error.
When I checked the codebase, I saw that we pass a status returned from NetCDF methods and check if it's not NC_NOERR:
We can log more information about the errors. I sometimes encounter
No such file or directory
errors and have no idea which file couldn't be found. It would be good to add the provided path so that it's easier to fix the error. This doesn't have to be specific for the mentioned error, though. We should provide more information about any NetCDF-related error.When I checked the codebase, I saw that we pass a status returned from NetCDF methods and check if it's not
NC_NOERR
:I am not sure how to improve the logging but I am open to implementing the suggested implementation.