From b5c057d5504455a8d520add6fefd55f76c49681c Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 14 Feb 2026 12:17:04 +0900 Subject: [PATCH] Update package.json to include author email and enhance error handling in SshConnectionManager - Modified the author field in package.json to include an email address for better attribution. - Improved error handling in SshConnectionManager by providing a clearer exit code message when remote command execution fails. --- package.json | 5 ++++- src/main/services/infrastructure/SshConnectionManager.ts | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d9088cda..218c5ac3 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,10 @@ "version": "0.1.0", "description": "Desktop app that visualizes Claude Code session execution — explore conversations, track context usage, and analyze tool calls", "license": "MIT", - "author": "claude-devtools contributors", + "author": { + "name": "claude-devtools contributors", + "email": "matt1398@users.noreply.github.com" + }, "homepage": "https://github.com/matt1398/claude-devtools", "repository": { "type": "git", diff --git a/src/main/services/infrastructure/SshConnectionManager.ts b/src/main/services/infrastructure/SshConnectionManager.ts index dcf40890..f8fdf48f 100644 --- a/src/main/services/infrastructure/SshConnectionManager.ts +++ b/src/main/services/infrastructure/SshConnectionManager.ts @@ -508,7 +508,8 @@ export class SshConnectionManager extends EventEmitter { resolve(stdout); return; } - reject(new Error(stderr.trim() || `Remote command failed with exit code ${code}`)); + const exitCode = code === null ? 'unknown' : String(code); + reject(new Error(stderr.trim() || `Remote command failed with exit code ${exitCode}`)); }); }); });