Skip to content

Commit

Permalink
improve pty error
Browse files Browse the repository at this point in the history
  • Loading branch information
squell committed Jan 10, 2024
1 parent 328be1e commit e544180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exec/use_pty/parent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ fn get_pty() -> io::Result<Pty> {

let pty = Pty::open().map_err(|err| {
dev_error!("cannot allocate pty: {err}");
err
io::Error::new(io::ErrorKind::NotFound, "unable to open pty")

Check warning on line 269 in src/exec/use_pty/parent.rs

View check run for this annotation

Codecov / codecov/patch

src/exec/use_pty/parent.rs#L269

Added line #L269 was not covered by tests
})?;

let euid = User::effective_uid();
Expand Down

0 comments on commit e544180

Please sign in to comment.