MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / onError

Method onError

src/content-scripts/decryptContainer.js:50–57  ·  view source on GitHub ↗
({error})

Source from the content-addressed store, hash-verified

48 }
49
50 onError({error}) {
51 if (error.code) {
52 // error with error code is not handled as an exception
53 this.createPromise.resolve({error});
54 } else {
55 this.createPromise.reject(error);
56 }
57 }
58
59 onArmored() {
60 if (!/^-----BEGIN PGP MESSAGE-----/.test(this.armored)) {

Callers

nothing calls this directly

Calls 1

rejectMethod · 0.80

Tested by

no test coverage detected