[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [bridgedb/master] Feedback implmentation



commit a2a37821da95e0195b35543c0772eadf0f854734
Author: agix <columbeff@xxxxxxxxx>
Date:   Sat May 2 10:39:58 2020 +0200

    Feedback implmentation
    
    Removed link from error pages
    Changed missed chatspeak string
---
 bridgedb/distributors/https/templates/error-400.html | 2 +-
 bridgedb/distributors/https/templates/error-500.html | 2 +-
 bridgedb/test/test_https_server.py                   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bridgedb/distributors/https/templates/error-400.html b/bridgedb/distributors/https/templates/error-400.html
index 5f12dda..9430c00 100644
--- a/bridgedb/distributors/https/templates/error-400.html
+++ b/bridgedb/distributors/https/templates/error-400.html
@@ -22,7 +22,7 @@
         <div class="road full-size"></div>
         <div class="error-text">
           <h1>Bad Request</h1>
-          <p>Your request was not understood by the server.<a href="/">BridgeDB</a></p>
+          <p>Your request was not understood by the server.</p>
         </div>
       </main>
     </div>
diff --git a/bridgedb/distributors/https/templates/error-500.html b/bridgedb/distributors/https/templates/error-500.html
index e17b2f4..1408293 100644
--- a/bridgedb/distributors/https/templates/error-500.html
+++ b/bridgedb/distributors/https/templates/error-500.html
@@ -28,7 +28,7 @@
         <div class="road full-size"></div>
         <div class="error-text">
           <h1>Internal Error</h1>
-          <p>BridgeDB encountered an internal error<a href="/">BridgeDB</a></p>
+          <p>BridgeDB encountered an internal error</p>
         </div>
       </main>
     </div>
diff --git a/bridgedb/test/test_https_server.py b/bridgedb/test/test_https_server.py
index 3b159ce..c523c1e 100644
--- a/bridgedb/test/test_https_server.py
+++ b/bridgedb/test/test_https_server.py
@@ -86,7 +86,7 @@ class ReplaceErrorPageTests(unittest.TestCase):
         ``replaceErrorPage`` should return custom hardcoded HTML error text.
         """
         request = DummyRequest([''])
-        exc = Exception("vegan gümmibären")
+        exc = Exception("Error while rendering")
         server.resource500 = None
         errorPage = server.replaceErrorPage(request, exc)
         self.assertNotSubstring(b"Bad Request", errorPage)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits