summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-07-27 14:11:05 +0200
committerCarl Hetherington <cth@carlh.net>2024-07-27 14:11:05 +0200
commit6f6318e1860d665c1c0c30a9c5735e1355453088 (patch)
tree06f4f93b335ae53479bbe3b03f9157e6a385c347 /src
parent6e53e5006524dd0559abcdcad2bc50a40dbb2d91 (diff)
Report Bv2.1 errors in the bottom part of the saved verification report.v1.9.13
Diffstat (limited to 'src')
-rw-r--r--src/verify_report.cc13
-rw-r--r--src/verify_report.h3
2 files changed, 13 insertions, 3 deletions
diff --git a/src/verify_report.cc b/src/verify_report.cc
index 2201b8fa..632e2a04 100644
--- a/src/verify_report.cc
+++ b/src/verify_report.cc
@@ -92,12 +92,19 @@ dcp::verify_report(dcp::VerificationResult const& result, Formatter& formatter)
for (auto note: result.notes) {
if (note.cpl_id() == cpl_id) {
auto const note_as_string = dcp::note_to_string(note, formatter.process_string(), formatter.process_filename());
- if (note.type() == dcp::VerificationNote::Type::OK) {
+ switch (note.type()) {
+ case dcp::VerificationNote::Type::OK:
formatter.list_item(note_as_string, string("ok"));
- } else if (note.type() == dcp::VerificationNote::Type::WARNING) {
+ break;
+ case dcp::VerificationNote::Type::WARNING:
formatter.list_item(note_as_string, string("warning"));
- } else if (note.type() == dcp::VerificationNote::Type::ERROR) {
+ break;
+ case dcp::VerificationNote::Type::ERROR:
formatter.list_item(note_as_string, string("error"));
+ break;
+ case dcp::VerificationNote::Type::BV21_ERROR:
+ formatter.list_item(note_as_string, string("bv21-error"));
+ break;
}
}
}
diff --git a/src/verify_report.h b/src/verify_report.h
index b8ca5516..a8ea4152 100644
--- a/src/verify_report.h
+++ b/src/verify_report.h
@@ -181,6 +181,9 @@ public:
"li.error {\n"
" background-color: #ff0000;\n"
"}\n"
+ "li.bv21-error {\n"
+ " background-color: #ff6666;\n"
+ "}\n"
"ul {\n"
" list-style: none;\n"
"}\n"