mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-02 22:50:20 +00:00
Write linearization errors to stderr (fixes #438)
This commit is contained in:
parent
22a167a014
commit
26514ab731
@ -1,3 +1,8 @@
|
|||||||
|
2020-04-29 Jay Berkenbilt <ejb@ql.org>
|
||||||
|
|
||||||
|
* Bug fix: qpdf --check was writing errors and warnings reported
|
||||||
|
by checkLinearization to stdout instead of stderr. Fixes #438.
|
||||||
|
|
||||||
2020-04-09 Jay Berkenbilt <ejb@ql.org>
|
2020-04-09 Jay Berkenbilt <ejb@ql.org>
|
||||||
|
|
||||||
* 10.0.1: release
|
* 10.0.1: release
|
||||||
|
@ -73,7 +73,7 @@ QPDF::checkLinearization()
|
|||||||
}
|
}
|
||||||
catch (QPDFExc& e)
|
catch (QPDFExc& e)
|
||||||
{
|
{
|
||||||
*this->m->out_stream << e.what() << std::endl;
|
*this->m->err_stream << e.what() << std::endl;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -386,7 +386,7 @@ QPDF::readHintStream(Pipeline& pl, qpdf_offset_t offset, size_t length)
|
|||||||
if ((computed_end < min_end_offset) ||
|
if ((computed_end < min_end_offset) ||
|
||||||
(computed_end > max_end_offset))
|
(computed_end > max_end_offset))
|
||||||
{
|
{
|
||||||
*this->m->out_stream << "expected = " << computed_end
|
*this->m->err_stream << "expected = " << computed_end
|
||||||
<< "; actual = " << min_end_offset << ".."
|
<< "; actual = " << min_end_offset << ".."
|
||||||
<< max_end_offset << std::endl;
|
<< max_end_offset << std::endl;
|
||||||
throw QPDFExc(qpdf_e_damaged_pdf, this->m->file->getName(),
|
throw QPDFExc(qpdf_e_damaged_pdf, this->m->file->getName(),
|
||||||
@ -661,7 +661,7 @@ QPDF::checkLinearizationInternal()
|
|||||||
for (std::list<std::string>::iterator iter = errors.begin();
|
for (std::list<std::string>::iterator iter = errors.begin();
|
||||||
iter != errors.end(); ++iter)
|
iter != errors.end(); ++iter)
|
||||||
{
|
{
|
||||||
*this->m->out_stream << "WARNING: " << (*iter) << std::endl;
|
*this->m->err_stream << "WARNING: " << (*iter) << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -671,7 +671,7 @@ QPDF::checkLinearizationInternal()
|
|||||||
for (std::list<std::string>::iterator iter = warnings.begin();
|
for (std::list<std::string>::iterator iter = warnings.begin();
|
||||||
iter != warnings.end(); ++iter)
|
iter != warnings.end(); ++iter)
|
||||||
{
|
{
|
||||||
*this->m->out_stream << "WARNING: " << (*iter) << std::endl;
|
*this->m->err_stream << "WARNING: " << (*iter) << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1094,7 +1094,7 @@ QPDF::showLinearizationData()
|
|||||||
}
|
}
|
||||||
catch (QPDFExc& e)
|
catch (QPDFExc& e)
|
||||||
{
|
{
|
||||||
*this->m->out_stream << e.what() << std::endl;
|
*this->m->err_stream << e.what() << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user