Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

eslint: Fix preserve-caught-error.

Anders Kaseorg7b2af9e8cacd
diff --git a/web/src/base_page_params.ts b/web/src/base_page_params.ts
index a1e5d536750..0112ba6b19e 100644
--- a/web/src/base_page_params.ts
+++ b/web/src/base_page_params.ts
@@ -173,7 +173,7 @@ function parse_page_params(): z.infer<typeof page_params_schema> {
// Halt module loading without logging to Sentry; the
// user self-heals on the scheduled reload. The matching
// entry in sentry.ts's ignoreErrors keeps this quiet.
- throw new Error("page_params parse failed; reload scheduled");
+ throw new Error("page_params parse failed; reload scheduled", {cause: error});
}
throw error;
}