Merge pull request #15569 from Snuffleupagus/rm-worker-GetOperatorList-UnsupportedFeature

[api-minor] Stop sending "UnsupportedFeature" from the worker-thread GetOperatorList-handling
This commit is contained in:
Jonas Jenwald 2022-10-14 09:12:10 +02:00 committed by GitHub
commit d5036d7bfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,6 @@ import {
stringToPDFString, stringToPDFString,
UnexpectedResponseException, UnexpectedResponseException,
UnknownErrorException, UnknownErrorException,
UNSUPPORTED_FEATURES,
VerbosityLevel, VerbosityLevel,
warn, warn,
} from "../shared/util.js"; } from "../shared/util.js";
@ -728,12 +727,6 @@ class WorkerMessageHandler {
if (task.terminated) { if (task.terminated) {
return; // ignoring errors from the terminated thread return; // ignoring errors from the terminated thread
} }
// For compatibility with older behavior, generating unknown
// unsupported feature notification on errors.
handler.send("UnsupportedFeature", {
featureId: UNSUPPORTED_FEATURES.errorOperatorList,
});
sink.error(reason); sink.error(reason);
// TODO: Should `reason` be re-thrown here (currently that casues // TODO: Should `reason` be re-thrown here (currently that casues