From be8dfca975df2b0d0d5b267310bf1c540c873ccc Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 2 Aug 2020 04:48:24 +0200 Subject: config::Error::Opts: Include source error in message Ensure the source error is surfaced. --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index bbee2c9..cd81d43 100644 --- a/src/config.rs +++ b/src/config.rs @@ -11,7 +11,7 @@ const GIT_CONFIG_PREFIX: &'static str = "githubSuggestion."; #[derive(Debug, Error)] pub enum Error { - #[error("Unable to parse arguments")] + #[error("Unable to parse arguments: {0}")] Opts(#[from] getopts::Fail), #[error("Error getting environment variable")] -- cgit v1.2.3