aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-11-13 20:11:47 +0100
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-11-13 20:11:47 +0100
commit639ab976b8d526a8f0a296d6577dce7715109fff (patch)
treec93989ec96341f77ae505330e19aa18103e76d6b
parent0216ff1b4cacdf348d39fe646474a711a1a03be0 (diff)
prettify error messages
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index e68fe4e..1bfd287 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -26,7 +26,7 @@ enum Error {
#[error("can't find ntp server hostname")]
NoHostname,
- #[error("io: {0}")]
+ #[error("io error: {0}")]
Io(#[from] io::Error),
#[error("can't parse network address: {0}")]
ParseAddr(#[from] net::AddrParseError),
@@ -37,11 +37,11 @@ enum Error {
#[error("slice length does not equal array length: {0}")]
TryFromSlice(#[from] array::TryFromSliceError),
- #[error("chrono parse: {0}")]
+ #[error("can't parse (build) timestamp using chrono: {0}")]
ChronoParse(#[from] chrono::ParseError),
#[error("nix errno: {0}")]
NixErrno(#[from] nix::errno::Errno),
- #[error("ntp: {0}")]
+ #[error("ntp error: {0}")]
Ntp(#[from] ntp::errors::Error),
#[error("hickory_resolver resolve error: {0}")]
HickoryResolve(#[from] hickory_resolver::error::ResolveError),