From f693b0f318ca87b9fe189a3e9402ad7b8d1ea3bd Mon Sep 17 00:00:00 2001 From: seem Date: Wed, 18 Dec 2024 08:42:29 +0200 Subject: [PATCH] fix restore session error logging --- .../services/runtimeStartup/common/runtimeStartup.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/services/runtimeStartup/common/runtimeStartup.ts b/src/vs/workbench/services/runtimeStartup/common/runtimeStartup.ts index 90d94a19130..16412dca387 100644 --- a/src/vs/workbench/services/runtimeStartup/common/runtimeStartup.ts +++ b/src/vs/workbench/services/runtimeStartup/common/runtimeStartup.ts @@ -734,8 +734,8 @@ export class RuntimeStartupService extends Disposable implements IRuntimeStartup await this.restoreWorkspaceSessions(sessions); } } catch (err) { - this._logService.error(`Could not restore workspace sessions: ${err} ` + - `(data: ${storedSessions})`); + this._logService.error(`Could not restore workspace sessions: ${err?.stack ?? err} ` + + `(data: ${JSON.stringify(storedSessions)})`); } }