[tor-commits] [atlas/master] Show better error message for search errors.

phw at torproject.org phw at torproject.org
Tue Mar 17 23:56:17 UTC 2015


commit 70d1636d266ef05acdefcfff257774d2a8625f23
Author: Philipp Winter <phw at torproject.org>
Date:   Wed Mar 18 00:52:36 2015 +0100

    Show better error message for search errors.
    
    If Atlas cannot get a response from Onionoo, it's not always the user's
    fault.  This fix changes the error message to make that clear.
    Hopefully, this will result in less bug reports when Onionoo is offline.
---
 templates/search/do.html |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/templates/search/do.html b/templates/search/do.html
index ddbd21d..dfb0fc1 100644
--- a/templates/search/do.html
+++ b/templates/search/do.html
@@ -14,11 +14,13 @@
     </div>
     <% } else if (error == 2) {%>
     <div class="alert alert-error">
-        <strong>Backend error!</strong><p>The backend server replied with an error
-to your query. This probably means that you did not properly format your query.
-If your query was properly formatted it may mean that there is an issue with your browser/add-ons.
-Please report which browser/addons/etc. you're using to <a href="https://trac.torproject.org/projects/tor/newticket?component=Atlas">the bug tracker.</a>
-    </p>
+        <strong>Backend error!</strong>
+        <p>Atlas is unable to get a response from its backend server. This
+        probably means that the backend server is unavailable right now. This
+        can also happen, however, if you did not format your query correctly.
+        Please have a look at <a href="https://atlas.torproject.org/#about">this
+        page</a> that explains what type of search queries are supported by
+        Atlas.</p>
     </div>
     <% } else if (error == 3) {%>
     <div class="alert alert-error">



More information about the tor-commits mailing list