summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/backends/run_error.rs4
-rw-r--r--src/wait/rusage_ffi.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backends/run_error.rs b/src/backends/run_error.rs
index 68f0495..6203bbe 100644
--- a/src/backends/run_error.rs
+++ b/src/backends/run_error.rs
@@ -22,8 +22,8 @@ impl From<WaitError> for RunError {
impl std::fmt::Display for RunError {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match &*self {
- RunError::IoError(e) => e.fmt(f),
- RunError::WaitError(e) => e.fmt(f)
+ RunError::IoError(e) => write!(f, "I/O error: {}", e),
+ RunError::WaitError(e) => write!(f, "Wait error: {}", e),
}
}
}
diff --git a/src/wait/rusage_ffi.rs b/src/wait/rusage_ffi.rs
index 0a9117a..d77884e 100644
--- a/src/wait/rusage_ffi.rs
+++ b/src/wait/rusage_ffi.rs
@@ -62,4 +62,4 @@ impl Rusage {
unimplemented!();
}
}
-} \ No newline at end of file
+}