Prevent angular from throwing exceptions if error is null

This commit is contained in:
Johannes Zellner
2019-09-24 18:46:07 +02:00
parent 89d3228077
commit 2ea3ba492e

View File

@@ -417,6 +417,8 @@ app.filter('taskName', function () {
app.filter('errorSuggestion', function () {
return function (error) {
if (!error) return '';
switch (error.reason) {
case ERROR.ACCESS_DENIED:
if (error.domain) return 'Check the DNS credentials of ' + error.domain.domain + ' in the Domains & Certs view';