We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7527d1e commit 440b7e7Copy full SHA for 440b7e7
docs/openapi-fetch/middleware-auth.md
@@ -29,9 +29,7 @@ const myMiddleware: Middleware = {
29
},
30
async onError({ error }) {
31
// wrap errors thrown by fetch
32
- onError({ error }) {
33
- return new Error("Oops, fetch failed", { cause: error });
34
- },
+ return new Error("Oops, fetch failed", { cause: error });
35
36
};
37
0 commit comments