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,
UnexpectedResponseException,
UnknownErrorException,
UNSUPPORTED_FEATURES,
VerbosityLevel,
warn,
} from "../shared/util.js";
@ -728,12 +727,6 @@ class WorkerMessageHandler {
if (task.terminated) {
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);
// TODO: Should `reason` be re-thrown here (currently that casues