Output XML errors.

This commit is contained in:
tastytea 2021-05-29 18:38:46 +02:00
parent ba5716c585
commit 2d65961688
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 6 additions and 0 deletions

View File

@ -181,6 +181,7 @@ std::vector<std::string> list_spine(const fs::path &filepath)
.attribute("full-path")
.value();
}
cerr << translate("ERROR: ") << result.description() << '\n';
return "";
}()};
@ -219,6 +220,11 @@ std::vector<std::string> 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())