Better error message when dealing with plugins?


#1

Hello,
And Happy New Year!

Reported downstream https://github.com/h5py/h5py/issues/827

Currently, when HDF5 is looking for a plugin filter and HDF5_PLUGIN_PATH is undefined and default plugin directory is missing, the user gets the error:
Can't read data (Can't open directory)

It would be better to get something like
Plugin XXXXX needed. Can't open directory YYYYY
That would tell the user:

  • Which plugin is needed
  • The plugin directory

Best wishes in 2019,
Andrey Paramonov