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.
|
||||
this.handler.send('UnsupportedFeature',
|
||||
{ featureId: UNSUPPORTED_FEATURES.unknown, });
|
||||
warn('getOperatorList - ignoring errors during task: ' + task.name);
|
||||
warn(`getOperatorList - ignoring errors during "${task.name}" ` +
|
||||
`task: "${reason}".`);
|
||||
|
||||
closePendingRestoreOPS();
|
||||
return;
|
||||
@ -1846,7 +1847,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
||||
}
|
||||
if (this.options.ignoreErrors) {
|
||||
// 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();
|
||||
enqueueChunk();
|
||||
|
Loading…
x
Reference in New Issue
Block a user