Fix: HTTP handling was broken after updating libs.
This commit is contained in:
parent
03083b819b
commit
c3d527f2bc
5 changed files with 14 additions and 13 deletions
app/scripts/directives
|
@ -15,8 +15,8 @@ angular.module('ffffng')
|
|||
|
||||
$scope.error = null;
|
||||
$scope.onSubmit(token)
|
||||
.catch(function (response, code) {
|
||||
switch (code) {
|
||||
.catch(function (response) {
|
||||
switch (response.status) {
|
||||
case 404: // not found
|
||||
$scope.error = 'Zum Token wurde kein passender Eintrag gefunden.';
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue