Fix error

This commit is contained in:
Javier 2016-12-16 11:00:48 -03:00
commit 09ba421eea
2 changed files with 7 additions and 3 deletions

View file

@ -144,7 +144,11 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
if (err instanceof errors.NOT_AUTHORIZED) {
return cb('WALLET_NOT_REGISTERED');
}
return cb(err);
if (err instanceof errors.CONNECTION_ERROR)
return cb('CONNECTION_ERROR');
if (err instanceof errors.NOT_FOUND)
return cb('NOT_FOUND');
}
return cb(null, ret);
});