Output XML errors.
This commit is contained in:
parent
ba5716c585
commit
2d65961688
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue
Block a user