From a596f032dafd40ffefded56c54301d1c9cc9b9b1 Mon Sep 17 00:00:00 2001
From: "mr.Shu" <mr@shu.io>
Date: Sat, 10 Jun 2017 23:08:43 +0200
Subject: [PATCH] update: Clearer message on network failure

* Add clearer message which clearly mention that the issues are not
  caused by Tectonic, as per #51.

Signed-off-by: mr.Shu <mr@shu.io>
---
 src/io/itarbundle.rs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/io/itarbundle.rs b/src/io/itarbundle.rs
index ce6ccd9ac7..93521ae2a8 100644
--- a/src/io/itarbundle.rs
+++ b/src/io/itarbundle.rs
@@ -189,8 +189,10 @@ impl<F: ITarIoFactory> IoProvider for ITarBundle<F> {
 
         if overall_failed {
             // Note: can't save & reuse the hyper errors since they're not cloneable
-            return OpenResult::Err(ErrorKind::Msg(format!("failed to retrieve \"{}\" from the network",
-                                                          name.to_string_lossy())).into());
+            return OpenResult::Err(ErrorKind::Msg(format!("failed to retrieve \"{}\" from the network; \
+                                                           this most probably is not Tectonic's fault \
+                                                           -- check your network connection.",
+                                                           name.to_string_lossy())).into());
         } else if any_failed {
             tt_note!(status, "download succeeded after retry");
         }