Skip to content

Commit

Permalink
server/os_io: Gracefully handle failing resize
Browse files Browse the repository at this point in the history
for terminals IDs that don't exist, instead of propagating the error to
the user.
  • Loading branch information
har7an committed Nov 2, 2022
1 parent 86d458d commit d4a8d1c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zellij-server/src/os_input_output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,9 @@ impl ServerOsApi for ServerOsInputOutput {
}
},
_ => {
return Err(anyhow!("failed to find terminal fd for id {id}"))
.with_context(err_context);
Err::<(), _>(anyhow!("failed to find terminal fd for id {id}"))
.with_context(err_context)
.non_fatal();
},
}
Ok(())
Expand Down

0 comments on commit d4a8d1c

Please sign in to comment.