From 10e518db427ddcffae27832c43043678587fe3a7 Mon Sep 17 00:00:00 2001
From: Jonathan Jogenfors <jonathan@jogenfors.se>
Date: Sat, 25 Jan 2025 04:45:55 +0100
Subject: [PATCH] chore(server): print stack in case of worker error (#15632)

feat: show error stack
---
 server/src/main.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main.ts b/server/src/main.ts
index 3097eee69b..95b35c6915 100644
--- a/server/src/main.ts
+++ b/server/src/main.ts
@@ -13,7 +13,7 @@ if (immichApp) {
 let apiProcess: ChildProcess | undefined;
 
 const onError = (name: string, error: Error) => {
-  console.error(`${name} worker error: ${error}`);
+  console.error(`${name} worker error: ${error}, stack: ${error.stack}`);
 };
 
 const onExit = (name: string, exitCode: number | null) => {