better connection error handling

This commit is contained in:
Matias Alejo Garcia 2015-05-29 11:46:33 -03:00
commit 1fca607300
3 changed files with 31 additions and 11 deletions

View file

@ -677,7 +677,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
go.walletHome();
} else if (err && err.cors == 'rejected') {
$log.debug('CORS error:', err);
} else if (err.code === 'ETIMEDOUT') {
} else if (err.code === 'ETIMEDOUT' || err.code === 'CONNERROR') {
$log.debug('Time out:', err);
} else {
var msg = 'Error at Wallet Service: ';