fixed error messages

pull/8/head
FlayInAHook 4 years ago
parent a813028f88
commit 89089959af

@ -29,6 +29,7 @@ export class TokenInterceptor implements HttpInterceptor {
errorMessage = `Error: ${error.error.message}`;
} else {
//server error
console.log("Error: " + JSON.stringify(error));
if (error.status === 400){
switch (error.error.message) {
case "Invalid refresh token!":
@ -38,6 +39,7 @@ export class TokenInterceptor implements HttpInterceptor {
break;
default:
errorMessage = `${error.error.message}. Error Code: ${error.status}.`;
break;
}

Loading…
Cancel
Save