Refactor start logic and add stderr streaming

This commit is contained in:
Hector van der Aa
2025-12-03 21:44:11 +01:00
parent 377ca8b00b
commit 9d3d054b2a
3 changed files with 64 additions and 12 deletions

View File

@@ -61,6 +61,9 @@ pub enum HandleError {
pub enum SubscribeError {
#[error("No stdout found")]
NoStdout,
#[error("No stderr found")]
NoStderr,
}
#[derive(Debug, Clone, Error)]
@@ -83,6 +86,9 @@ pub enum ServerError {
#[error("Failed to access child stdin pipe")]
NoStdinPipe,
#[error("Failed to access child stderr pipe")]
NoStderrPipe,
#[error("Failed to write to stdin")]
StdinWriteFailed,
}