Skip to content

Commit

Permalink
Added connection error handling to testDatasource() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderzobnin committed Aug 19, 2015
1 parent b5bd3ff commit 693cbe1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zabbix/datasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ function (angular, _, kbn) {
};
}
});
}, function(error) {
return {
status: "error",
title: "Connection failed",
message: "Could not connect to " + error.config.url
};
});
};

Expand Down

0 comments on commit 693cbe1

Please sign in to comment.