From 2d659616886d7a583595267118c7448350360a9b Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 29 May 2021 18:38:46 +0200 Subject: [PATCH] Output XML errors. --- src/zip.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/zip.cpp b/src/zip.cpp index 4020145..8cc1d57 100644 --- a/src/zip.cpp +++ b/src/zip.cpp @@ -181,6 +181,7 @@ std::vector list_spine(const fs::path &filepath) .attribute("full-path") .value(); } + cerr << translate("ERROR: ") << result.description() << '\n'; return ""; }()}; @@ -219,6 +220,11 @@ std::vector list_spine(const fs::path &filepath) spine_filepaths.emplace_back(href); } } + else + { + cerr << translate("ERROR: ") << "XML: " << result.description() + << '\n'; + } } if (opf_file_path.empty() || spine_filepaths.empty())