openPMD / openPMD-validator

:ballot_box_with_check: Validator and Example Scripts
ISC License
4 stars 8 forks source link

Hand-Written Error Messages #46

Open ax3l opened 6 years ago

ax3l commented 6 years ago

For some locations, such as https://github.com/openPMD/openPMD-validator/pull/44#issuecomment-389203924, a hand-written error string instead of a regex can be more valuable to users.

let's add this as an optional parameter to the test_attr function.