summaryrefslogtreecommitdiff
path: root/packages/server/src/utils/errors.ts
diff options
context:
space:
mode:
authorJacob Richman <[email protected]>2025-05-02 14:39:39 -0700
committerGitHub <[email protected]>2025-05-02 14:39:39 -0700
commit0556358560f065dec5e35fd5b0544b18ddcc4495 (patch)
tree8ca5ca20991b2950b2360839d35b53d3c03f34ed /packages/server/src/utils/errors.ts
parent69d1c644d9034138ed7418f4450230756e84ad93 (diff)
Cleanup low value comments. (#248)
Diffstat (limited to 'packages/server/src/utils/errors.ts')
-rw-r--r--packages/server/src/utils/errors.ts2
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';
}
}