Skip to content

Commit

Permalink
Log schema used in case of XML validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
remia committed Oct 17, 2020
1 parent 9274b85 commit ada010b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clairmeta/dcp_check_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def check_xml(xml_path, xml_ns, schema_type, schema_dcp):
except LookupError as e:
get_log().info("Schema validation skipped : {}".format(xml_path))
except Exception as e:
raise CheckException("Schema validation error : {}".format(str(e)))
raise CheckException(
"Schema validation error : {}\n"
"Using schema : {}".format(str(e), schema_id))


def check_issuedate(date):
Expand Down

0 comments on commit ada010b

Please sign in to comment.