Update packages/core-app-api/src/apis/implementations/FetchApi/ClarifyFailuresFetchMiddleware.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ import { FetchMiddleware } from './types';
|
||||
|
||||
/**
|
||||
* Replaces the generic "TypeError: Failed to fetch" error with a more
|
||||
* informative message that includes the target URL.
|
||||
* informative message that includes the HTTP method and target URL.
|
||||
*/
|
||||
export class ClarifyFailuresFetchMiddleware implements FetchMiddleware {
|
||||
apply(next: typeof fetch): typeof fetch {
|
||||
|
||||
Reference in New Issue
Block a user