Skip to content
Snippets Groups Projects
Commit 70d51eb6 authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Server is now less revealing in error messages to clients (local logging is...

Server is now less revealing in error messages to clients (local logging is still as verbose as requested)
parent 59ce4518
No related branches found
No related tags found
No related merge requests found
......@@ -76,8 +76,6 @@ class Error(Exception):
d["message"] = self.message
if self.detail is not None:
d["detail"] = self.detail
if self.excval is not None:
d["message"] = d["message"] + ", cause was %s: %s" % (type(self.excval).__name__, str(self.excval))
return d
......@@ -607,7 +605,7 @@ class Server(Object):
try:
injson = environ['wsgi.input'].read()
except:
raise Error("Data read error", 408, method=path, exc=sys.exc_info())
raise Error("Data read error.", 408, method=path, exc=sys.exc_info())
try:
method = getattr(self.handler, path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment