summaryrefslogtreecommitdiffstats
path: root/core/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/lib.rs')
-rw-r--r--core/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/lib.rs b/core/src/lib.rs
index 470916a5..0fb66062 100644
--- a/core/src/lib.rs
+++ b/core/src/lib.rs
@@ -293,10 +293,10 @@ pub enum Error {
/// The network policy was violated by the given action.
#[fail(display = "Unmet network policy requirement: {}", _0)]
NetworkPolicyViolation(NetworkPolicy),
- #[fail(display = "IO error: {}", error)]
- IoError { error: io::Error },
- #[fail(display = "An unknown error has occurred.")]
- UnknownError,
+
+ /// An `io::Error` occurred.
+ #[fail(display = "{}", _0)]
+ IoError(#[cause] io::Error),
}
/* Network policy. */