Spaces:
Paused
Paused
feat: add stack trace to error logging
Browse files- src/hooks.server.ts +1 -0
src/hooks.server.ts
CHANGED
|
@@ -62,6 +62,7 @@ export const handleError: HandleServerError = async ({ error, event, status, mes
|
|
| 62 |
error,
|
| 63 |
errorId,
|
| 64 |
status,
|
|
|
|
| 65 |
});
|
| 66 |
|
| 67 |
return {
|
|
|
|
| 62 |
error,
|
| 63 |
errorId,
|
| 64 |
status,
|
| 65 |
+
stack: error instanceof Error ? error.stack : undefined,
|
| 66 |
});
|
| 67 |
|
| 68 |
return {
|