diff --git a/web/src/blueslip.ts b/web/src/blueslip.ts index c1cf398889..899ff1489e 100644 --- a/web/src/blueslip.ts +++ b/web/src/blueslip.ts @@ -86,11 +86,7 @@ export function warn(msg: string, more_info?: unknown): void { } } -export function error( - msg: string, - more_info?: object | undefined, - original_error?: unknown | undefined, -): void { +export function error(msg: string, more_info?: object | undefined, original_error?: unknown): void { // Log the Sentry error before the console warning, so we don't // end up with a doubled message in the Sentry logs. Sentry.setContext("more_info", more_info === undefined ? null : more_info); diff --git a/web/src/blueslip_stacktrace.ts b/web/src/blueslip_stacktrace.ts index 1767ea6346..38bdea376f 100644 --- a/web/src/blueslip_stacktrace.ts +++ b/web/src/blueslip_stacktrace.ts @@ -8,7 +8,7 @@ import render_blueslip_stacktrace from "../templates/blueslip_stacktrace.hbs"; export class BlueslipError extends Error { override name = "BlueslipError"; more_info?: object; - constructor(msg: string, more_info?: object | undefined, cause?: unknown | undefined) { + constructor(msg: string, more_info?: object | undefined, cause?: unknown) { super(msg, {cause}); if (more_info !== undefined) { this.more_info = more_info;