summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Winter <phw@torproject.org>2015-03-18 00:52:36 +0100
committerPhilipp Winter <phw@torproject.org>2015-03-18 00:52:36 +0100
commit70d1636d266ef05acdefcfff257774d2a8625f23 (patch)
treea7246d7c10e1df29e27fcaeeccbb7384fe4608b8
parent727455f50d913c2111143eb0e5c2ecabf48e1dad (diff)
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.
-rw-r--r--templates/search/do.html12
1 files 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">