summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/os/shared.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/os/shared.rs b/src/os/shared.rs
index 4cc0c24..ea0f44d 100644
--- a/src/os/shared.rs
+++ b/src/os/shared.rs
@@ -238,7 +238,10 @@ pub fn get_input(
let mut runtime = Runtime::new()?;
let resolver = match runtime.block_on(dns::Resolver::new(runtime.handle().clone())) {
Ok(resolver) => resolver,
- Err(_) => failure::bail!("Could not initialize the DNS resolver. Are you offline?"),
+ Err(err) => failure::bail!(
+ "Could not initialize the DNS resolver. Are you offline?\n\nReason: {:?}",
+ err
+ ),
};
let dns_client = dns::Client::new(resolver, runtime)?;
Some(dns_client)