It was reported at hed-standard/hed-javascript#836 (comment) that the validator is reporting HED_ERROR with an INTERNAL_ERROR subcode for what turns out to be IssueErrors thrown from the construction of BidsFile objects which fail basic validation. As with the schema construction, the IssueErrors have more specific information which can be used to build a more useful issue message. At the very least, the schema error-catching code should be copied for the file-building code, with internal errors reserved for uncaught errors from actual validation.
If nobody gets to it in the next couple of days, I'll take care of it myself.
It was reported at hed-standard/hed-javascript#836 (comment) that the validator is reporting
HED_ERRORwith anINTERNAL_ERRORsubcode for what turns out to beIssueErrors thrown from the construction ofBidsFileobjects which fail basic validation. As with the schema construction, theIssueErrors have more specific information which can be used to build a more useful issue message. At the very least, the schema error-catching code should be copied for the file-building code, with internal errors reserved for uncaught errors from actual validation.If nobody gets to it in the next couple of days, I'll take care of it myself.