diff options
| author | Jacob Richman <[email protected]> | 2025-05-02 14:39:39 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-02 14:39:39 -0700 |
| commit | 0556358560f065dec5e35fd5b0544b18ddcc4495 (patch) | |
| tree | 8ca5ca20991b2950b2360839d35b53d3c03f34ed /packages/server/src/utils/errors.ts | |
| parent | 69d1c644d9034138ed7418f4450230756e84ad93 (diff) | |
Cleanup low value comments. (#248)
Diffstat (limited to 'packages/server/src/utils/errors.ts')
| -rw-r--r-- | packages/server/src/utils/errors.ts | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/packages/server/src/utils/errors.ts b/packages/server/src/utils/errors.ts index 15417c83..32139c1a 100644 --- a/packages/server/src/utils/errors.ts +++ b/packages/server/src/utils/errors.ts @@ -12,12 +12,10 @@ export function getErrorMessage(error: unknown): string { if (error instanceof Error) { return error.message; } else { - // Attempt to convert the non-Error value to a string for logging try { const errorMessage = String(error); return errorMessage; } catch { - // If String() itself fails (highly unlikely) return 'Failed to get error details'; } } |
