openPMD / openPMD-api

:floppy_disk: C++ & Python API for Scientific I/O
https://openpmd-api.readthedocs.io
GNU Lesser General Public License v3.0
134 stars 51 forks source link

Unclear error message for unsupported file format #1471

Closed eschnett closed 11 months ago

eschnett commented 1 year ago

I tried to write a JSON-formatted file with openPMD_api 0.15.1. I received the error message Unknown file format! Did you specify a file ending?.

It would be nice if the error message included the file name and the suffix that openPMD doesn't understand.

ax3l commented 11 months ago

Thank you for the report and @franzpoeschel for the fix.

This will be part of the 0.15.2 release.