Improve the warning messages printed by `PartialEvaluator.{getOperatorList, getTextContent} when errors are being ignored
Currently the actual errors aren't printed, which can make debugging harder than necessary.
This commit is contained in:
parent
731f2e6dfc
commit
f01e54eae1
@ -1261,7 +1261,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||||||
// notification and allow rendering to continue.
|
// notification and allow rendering to continue.
|
||||||
this.handler.send('UnsupportedFeature',
|
this.handler.send('UnsupportedFeature',
|
||||||
{ featureId: UNSUPPORTED_FEATURES.unknown, });
|
{ featureId: UNSUPPORTED_FEATURES.unknown, });
|
||||||
warn('getOperatorList - ignoring errors during task: ' + task.name);
|
warn(`getOperatorList - ignoring errors during "${task.name}" ` +
|
||||||
|
`task: "${reason}".`);
|
||||||
|
|
||||||
closePendingRestoreOPS();
|
closePendingRestoreOPS();
|
||||||
return;
|
return;
|
||||||
@ -1846,7 +1847,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||||||
}
|
}
|
||||||
if (this.options.ignoreErrors) {
|
if (this.options.ignoreErrors) {
|
||||||
// Error(s) in the TextContent -- allow text-extraction to continue.
|
// Error(s) in the TextContent -- allow text-extraction to continue.
|
||||||
warn('getTextContent - ignoring errors during task: ' + task.name);
|
warn(`getTextContent - ignoring errors during "${task.name}" ` +
|
||||||
|
`task: "${reason}".`);
|
||||||
|
|
||||||
flushTextContentItem();
|
flushTextContentItem();
|
||||||
enqueueChunk();
|
enqueueChunk();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user