Merge pull request #13941 from Snuffleupagus/MessageHandler-PasswordException
Ensure that `PasswordException` is handled correctly in the `wrapReason` function
This commit is contained in:
commit
13bc661681
@ -18,6 +18,7 @@ import {
|
||||
assert,
|
||||
createPromiseCapability,
|
||||
MissingPDFException,
|
||||
PasswordException,
|
||||
UnexpectedResponseException,
|
||||
UnknownErrorException,
|
||||
warn,
|
||||
@ -64,6 +65,8 @@ function wrapReason(reason) {
|
||||
return new AbortException(reason.message);
|
||||
case "MissingPDFException":
|
||||
return new MissingPDFException(reason.message);
|
||||
case "PasswordException":
|
||||
return new PasswordException(reason.message, reason.code);
|
||||
case "UnexpectedResponseException":
|
||||
return new UnexpectedResponseException(reason.message, reason.status);
|
||||
case "UnknownErrorException":
|
||||
|
Loading…
x
Reference in New Issue
Block a user