From d13fd347ac3e530d7c4027b339af7c4aa801145f Mon Sep 17 00:00:00 2001 From: E44 <129310925+programmer-44@users.noreply.github.com> Date: Sun, 18 Jan 2026 13:20:52 +0100 Subject: [PATCH] chore(control): change visual error structure in api_handler --- control/frontend/src/lib/ts/api_handler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/control/frontend/src/lib/ts/api_handler.ts b/control/frontend/src/lib/ts/api_handler.ts index 98b522d..21e18b3 100755 --- a/control/frontend/src/lib/ts/api_handler.ts +++ b/control/frontend/src/lib/ts/api_handler.ts @@ -238,7 +238,7 @@ async function request( error_description += '\nCould not parse error description'; } } - notifications.push('error', `Fehler ${response.status} bei API-Anfrage`, error_description); + notifications.push('error', `Fehler bei API-Anfrage`, `\nHTTP: ${response.status}\n${error_description}`); } catch (error: unknown) { if (error instanceof TypeError && /fetch|NetworkError/i.test(error.message)) { if (dev) { @@ -272,8 +272,8 @@ function handle_shell_error( console.error(shell_response); notifications.push( 'error', - `Fehler ${shell_response.exitCode} in API-Shell`, - `${ip}\n${shell_command}\nFehler: ${shell_response.stderr}` + `Fehler in API-Shell`, + `${ip}\n${shell_command}\nFehler (${shell_response.exitCode}): ${shell_response.stderr}` ); return true; }