From 27a253e7511e78822af4f3021fb6d8dca8359f9f Mon Sep 17 00:00:00 2001 From: E44 <129310925+programmer-44@users.noreply.github.com> Date: Sun, 23 Nov 2025 00:59:30 +0100 Subject: [PATCH] fix(control): improve shell command error handling --- control/frontend/src/ts/api_handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/frontend/src/ts/api_handler.ts b/control/frontend/src/ts/api_handler.ts index f2a74ce..caeca1d 100644 --- a/control/frontend/src/ts/api_handler.ts +++ b/control/frontend/src/ts/api_handler.ts @@ -210,7 +210,7 @@ function handle_shell_error(ip: string, shell_response: ShellCommandResponse, sh return true; } console.error(shell_response); - notifications.push("error", `Fehler ${shell_response.exitCode} in API-Shell`, `${shell_command}\nFehler: ${shell_response.stderr}`); + notifications.push("error", `Fehler ${shell_response.exitCode} in API-Shell`, `${ip}\n${shell_command}\nFehler: ${shell_response.stderr}`); return true; } if (shell_response.stdout.trim() === '') return true;