Add return to failure case

This commit is contained in:
Drew Warren 2017-10-31 18:51:42 +00:00
parent f02300ed2b
commit c7444e2c84
1 changed files with 5 additions and 2 deletions

View File

@ -111,11 +111,14 @@ app.controller('websiteCtrl', [
el.session = session.token.sub + '@' + session.token.iss;
});
}, function(err) {
console.error("There was an error 1A", err);
return els;
});
});
})).then(function (results) {
return els;
});
}, function(err) {console.error("There was an error 1B", err)});
};
vm.getDomains = function () {