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 eebeed0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ipcCommunicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ 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) {
e.sender.send('uiAction_importedPresaleFile', 'Decryption Failed');
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
} else if(data.indexOf('Address:') !== -1) {
Expand Down

0 comments on commit eebeed0

Please sign in to comment.