Skip to content

Commit 4ac13ff

Browse files
authored
docs: fix middleware example 🍿 (#7851)
1 parent e81b0aa commit 4ac13ff

File tree

1 file changed

+1
-1
lines changed
  • packages/docs/src/routes/demo/qwikcity/middleware

1 file changed

+1
-1
lines changed

packages/docs/src/routes/demo/qwikcity/middleware/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const onRequest: RequestHandler = async ({ next }) => {
55
await next();
66
} catch (error: any) {
77
if (error?.message === 'ERROR: Demonstration of an error response.') {
8-
return await next();
8+
throw error;
99
} else if (
1010
error &&
1111
typeof error === 'object' &&

0 commit comments

Comments
 (0)