Skip to content

Commit 093a589

Browse files
EMaherCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent ca61625 commit 093a589

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/logger.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ function sanitize(value: unknown): unknown {
6666
if (value instanceof Error) {
6767
// Convert Error objects to a serializable form
6868
return {
69-
name: value.name,
70-
message: value.message,
71-
stack: value.stack,
69+
name: sanitize(value.name),
70+
message: sanitize(value.message),
71+
stack: value.stack === undefined ? undefined : sanitize(value.stack),
7272
...(value.cause ? { cause: sanitize(value.cause) } : {}),
7373
};
7474
}

0 commit comments

Comments
 (0)