summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-03-01 16:54:01 +0100
committerJustus Winter <justus@sequoia-pgp.org>2018-03-01 16:56:49 +0100
commita2b73242253fd714a6d3f129e86ca63a8d13f2fb (patch)
treecf50d35f00971be122f2127457c8556eba4d4b73 /core
parent70918970bb7ef7436cc1386a88e9e41a07cc1b44 (diff)
core: Remove unknown error.
Diffstat (limited to 'core')
-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. */