Skip to content
Snippets Groups Projects
Commit bbedd76f authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

test

parent 5828b107
No related branches found
No related tags found
1 merge request!542Interceptor
...@@ -15,10 +15,9 @@ export function tooManyRequestsInterceptor( ...@@ -15,10 +15,9 @@ export function tooManyRequestsInterceptor(
console.log(error); console.log(error);
if (error instanceof HttpErrorResponse) { if (error instanceof HttpErrorResponse) {
console.log(error.status); if (typeof error.error === 'string') {
console.log('is string');
if (error.status === 429) { throw new Error(error.error);
console.log(error.statusText);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment