add network error handle
This commit is contained in:
parent
b3b0d7903e
commit
bc7c21c237
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue