fix: clear regression and extension recovers response for error status codes

This commit is contained in:
Andrew Bastin
2023-09-18 18:23:37 +05:30
parent f5b130024e
commit bcc1147f81
2 changed files with 8 additions and 2 deletions

View File

@@ -228,6 +228,11 @@ export class ExtensionInterceptorService
return E.right(result)
} catch (e) {
// TODO: improve type checking
if ((e as any).response) {
return E.right((e as any).response)
}
return E.left(<InterceptorError>{
// TODO: i18n this
humanMessage: {