diff --git a/gxformat2/schema/v19_09.py b/gxformat2/schema/v19_09.py index e2912b2..588c7bf 100644 --- a/gxformat2/schema/v19_09.py +++ b/gxformat2/schema/v19_09.py @@ -283,7 +283,11 @@ def load(self, doc, baseuri, loadingOptions, docRoot=None): else: r.append(lf) except ValidationException as e: - errors.append(e.with_sourceline(SourceLine(doc, i, str))) + errors.append(ValidationException( + str(e), + SourceLine(doc, i, str), + [e] + )) if errors: raise ValidationException("", None, errors) return r