Skip to content

Commit 6ca0a77

Browse files
committed
re-add bad error description
1 parent 5b45223 commit 6ca0a77

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/qwik-city/src/runtime/src/qwik-city-component.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ export const QwikCityProvider = component$<QwikCityProps>((props) => {
121121
env!.ev.originalUrl.pathname !== env!.ev.url.pathname &&
122122
!__EXPERIMENTAL__.enableRequestRewrite
123123
) {
124-
throw new Error(`enableRequestRewrite: ${__EXPERIMENTAL__.enableRequestRewrite}`);
124+
throw new Error(
125+
`enableRequestRewrite is an experimental feature and is not enabled. Please enable the feature flag by adding \`experimental: ["enableRequestRewrite"]\` to your qwikVite plugin options.`
126+
);
125127
}
126128
}
127129

0 commit comments

Comments
 (0)