Skip to content

Commit

Permalink
fix(login): catch exception when the api-key is not longer valid
Browse files Browse the repository at this point in the history
Fixes #68
  • Loading branch information
MathieuNls committed Nov 2, 2016
1 parent 4308774 commit 3e62315
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class MyApp {
});
},
error => {
console.log("No key set");
console.log("No valid key set");
}
);

Expand Down Expand Up @@ -70,6 +70,7 @@ export class MyApp {
err => {
console.log("removing", key);
this.storage.remove('tw-api')
throw err;
}
)
},
Expand Down

0 comments on commit 3e62315

Please sign in to comment.