MCPcopy
hub / github.com/mailvelope/mailvelope / handleError

Function handleError

src/components/key-backup/BackupKey.js:53–58  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

51 }
52
53 handleError(msg) {
54 if (msg.error.code !== 'PWD_DIALOG_CANCEL') {
55 this.setState({error: new Error(l10n.map.keybackup_failed)});
56 }
57 this.setState({waiting: false});
58 }
59
60 terminate() {
61 this.setState({terminate: true}, () => this.port.disconnect());

Callers

nothing calls this directly

Calls 1

setStateMethod · 0.45

Tested by

no test coverage detected