aboutsummaryrefslogtreecommitdiffstats
path: root/src/pty/async_io.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pty/async_io.rs')
-rw-r--r--src/pty/async_io.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pty/async_io.rs b/src/pty/async_io.rs
index 3318ac6..ebba0bf 100644
--- a/src/pty/async_io.rs
+++ b/src/pty/async_io.rs
@@ -38,7 +38,7 @@ impl super::Pty for Pty {
.read(true)
.write(true)
.open(&self.ptsname)
- .map_err(|e| Error::OpenPts(self.ptsname.clone(), e))?;
+ .map_err(|e| Error::OpenPts(e, self.ptsname.clone()))?;
Ok(fh)
}