add handler for insight-error

This commit is contained in:
Matias Alejo Garcia 2014-08-27 17:50:28 -03:00
commit 8604fe27ca
3 changed files with 15 additions and 11 deletions

View file

@ -120,7 +120,7 @@ angular.module('copayApp.controllers').controller('JoinController',
$scope.loading = false;
if (err || !w) {
if (err === 'joinError')
notification.error('Can\'t find peer.');
notification.error('Fatal error connecting to Insight server');
else if (err === 'walletFull')
notification.error('The wallet is full');
else if (err === 'badNetwork')