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")
|
.attribute("full-path")
|
||||||
.value();
|
.value();
|
||||||
}
|
}
|
||||||
|
cerr << translate("ERROR: ") << result.description() << '\n';
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
}()};
|
}()};
|
||||||
@ -219,6 +220,11 @@ std::vector<std::string> list_spine(const fs::path &filepath)
|
|||||||
spine_filepaths.emplace_back(href);
|
spine_filepaths.emplace_back(href);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cerr << translate("ERROR: ") << "XML: " << result.description()
|
||||||
|
<< '\n';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opf_file_path.empty() || spine_filepaths.empty())
|
if (opf_file_path.empty() || spine_filepaths.empty())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user