Skip to content

Commit

Permalink
match one more 'Decryption Failed' error message
Browse files Browse the repository at this point in the history
This message will be emitted when ethereum/go-ethereum#2284 is merged.
  • Loading branch information
fjl committed Apr 1, 2016
1 parent 41b2374 commit 9cb8c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ipcCommunicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ ipc.on('backendAction_importPresaleFile', function(e, path, pw) {
if(data)
console.log('Imported presale: ', data);

if(data.indexOf('Decryption failed:') !== -1 || data.indexOf('not equal to expected addr') !== -1) {
if(/Decryption failed|not equal to expected addr|could not decrypt/.match(data)) {
e.sender.send('uiAction_importedPresaleFile', 'Decryption Failed');

// if imported, return the address
Expand Down

0 comments on commit 9cb8c1e

Please sign in to comment.