mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
More ancient linux compiler support
This commit is contained in:
parent
6eeb85ebe6
commit
4cd004d4d9
@ -15,7 +15,9 @@ pdf::podofo_set_exception(const PdfError &err) {
|
|||||||
if (msg == NULL) msg = err.what();
|
if (msg == NULL) msg = err.what();
|
||||||
std::stringstream stream;
|
std::stringstream stream;
|
||||||
stream << msg << "\n";
|
stream << msg << "\n";
|
||||||
for (const PdfErrorInfo &info : err.GetCallstack()) {
|
const TDequeErrorInfo &s = err.GetCallstack();
|
||||||
|
for (TDequeErrorInfo::const_iterator it = s.begin(); it != s.end(); it++) {
|
||||||
|
const PdfErrorInfo &info = (*it);
|
||||||
stream << "File: " << info.GetFilename() << "Line: " << info.GetLine() << " " << info.GetInformation() << "\n";
|
stream << "File: " << info.GetFilename() << "Line: " << info.GetLine() << " " << info.GetInformation() << "\n";
|
||||||
}
|
}
|
||||||
PyErr_SetString(Error, stream.str().c_str());
|
PyErr_SetString(Error, stream.str().c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user