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

Method onError

src/content-scripts/editorContainer.js:62–70  ·  view source on GitHub ↗
({error})

Source from the content-addressed store, hash-verified

60 }
61
62 onError({error}) {
63 if (this.encryptPromise) {
64 this.encryptPromise.reject(error);
65 this.encryptPromise = null;
66 } else if (this.createDraftPromise) {
67 this.createDraftPromise.reject(error);
68 this.createDraftPromise = null;
69 }
70 }
71
72 onEncryptedMessage({message}) {
73 if (this.encryptPromise) {

Callers 2

checkForEmptyFormFunction · 0.45
onErrorFunction · 0.45

Calls 1

rejectMethod · 0.80

Tested by

no test coverage detected