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

Method encryptError

src/controller/gmail.controller.js:105–116  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

103 }
104
105 async encryptError(error) {
106 if (error.code == 'EDITOR_DIALOG_CANCEL') {
107 await this.removePeer('editorController');
108 return;
109 }
110 this.peers.editorController.ports.editor.emit('error-message', {
111 error: Object.assign(mapError(error), {
112 autoHide: false,
113 dismissable: false
114 })
115 });
116 }
117
118 async onSecureBtn({type, msgId, all, userInfo}) {
119 try {

Callers 1

onEditorCloseMethod · 0.45

Calls 3

mapErrorFunction · 0.90
removePeerMethod · 0.80
emitMethod · 0.45

Tested by

no test coverage detected