summaryrefslogtreecommitdiff
path: root/src/verify.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-28 23:05:15 +0100
committerCarl Hetherington <cth@carlh.net>2026-04-01 23:43:00 +0200
commite144eafe81f5c7ef51d3c4078a08e69b4e9a79e7 (patch)
treea12c829770a49b9cd1d2764b50d1dbca1d1cdb65 /src/verify.cc
parent2105b40ff1841be7e4c33d5131e20ef5c086350b (diff)
INVALID_XML: note -> error.
Diffstat (limited to 'src/verify.cc')
-rw-r--r--src/verify.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/verify.cc b/src/verify.cc
index d3f41221..0b80b460 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -370,10 +370,11 @@ validate_xml(Context& context, T xml)
for (auto i: error_handler.errors()) {
context.add_note(
- VerificationNote::Code::INVALID_XML,
- i.message(),
- boost::trim_copy(i.public_id() + " " + i.system_id()),
- i.line()
+ VerificationNote(
+ VerificationNote::Code::INVALID_XML,
+ boost::filesystem::path(boost::trim_copy(i.public_id() + " " + i.system_id())),
+ i.line()
+ ).set_error(i.message())
);
}
}
@@ -1981,7 +1982,7 @@ dcp::note_to_string(VerificationNote note, function<string (string)> process_str
case VerificationNote::Code::MISMATCHED_STANDARD:
return process_string("The DCP contains both SMPTE and Interop parts.");
case VerificationNote::Code::INVALID_XML:
- return compose("An XML file is badly formed: %1 (%2:%3)", note.note().get(), filename(), note.line().get());
+ return compose("An XML file is badly formed: %1 (%2:%3)", *note.error(), filename(), note.line().get());
case VerificationNote::Code::MISSING_ASSETMAP:
return process_string("No valid ASSETMAP or ASSETMAP.xml was found.");
case VerificationNote::Code::INVALID_INTRINSIC_DURATION: