mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47:09 +00:00
fix(control): improve shell command error handling
This commit is contained in:
@@ -210,7 +210,7 @@ function handle_shell_error(ip: string, shell_response: ShellCommandResponse, sh
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
console.error(shell_response);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
if (shell_response.stdout.trim() === '') return true;
|
if (shell_response.stdout.trim() === '') return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user