diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-12-06 10:47:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-12-22 01:21:00 +0100 |
| commit | 30dfa051113792305f9704d5a76ffaf57c21063d (patch) | |
| tree | 4a4055b40bfb64ebf5b7509ef81a104db4a52e46 /tools/dcprecover.cc | |
| parent | 9cb23adda9ebe6a76992b68db78ccb638348dac1 (diff) | |
Use VerificationNote for non-fatal errors in DCP::read.
Diffstat (limited to 'tools/dcprecover.cc')
| -rw-r--r-- | tools/dcprecover.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/dcprecover.cc b/tools/dcprecover.cc index b747a5da..eb3b0d82 100644 --- a/tools/dcprecover.cc +++ b/tools/dcprecover.cc @@ -100,15 +100,15 @@ main (int argc, char* argv[]) /* Try to read it and report errors */ dcp::DCP dcp (dcp_dir); - dcp::DCP::ReadErrors errors; + list<dcp::VerificationNote> notes; try { - dcp.read (true, &errors, true); + dcp.read (¬es, true); } catch (dcp::DCPReadError& e) { cout << "Error:" << e.what() << "\n"; } - BOOST_FOREACH (shared_ptr<dcp::DCPReadError> i, errors) { - cout << "Error: " << i->what() << "\n"; + BOOST_FOREACH (dcp::VerificationNote i, notes) { + cout << "Error: " << dcp::note_to_string(i) << "\n"; } /* Look for a CPL */ |
