mirror of https://github.com/BTCPrivate/copay.git
add network error handle
This commit is contained in:
parent
b3b0d7903e
commit
bc7c21c237
|
@ -44,6 +44,8 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
|
||||||
copay.logger.warn(err);
|
copay.logger.warn(err);
|
||||||
if ((err.toString() || '').match('PNOTFOUND')) {
|
if ((err.toString() || '').match('PNOTFOUND')) {
|
||||||
$scope.error = 'Invalid email or password';
|
$scope.error = 'Invalid email or password';
|
||||||
|
} else if ((err.toString() || '').match('Connection')) {
|
||||||
|
$scope.error = 'Could not connect to Insight Server';
|
||||||
} else {
|
} else {
|
||||||
$scope.error = 'Unknown error';
|
$scope.error = 'Unknown error';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue