Permalink
Browse files

show a minimal response body when discreet mode is enabled

  • Loading branch information...
conorbranagan committed May 31, 2012
1 parent 1372cb3 commit 46dcafa3b39bbb33a832b9fa92a46a161f9025a6
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/exceptional/__init__.py
@@ -103,9 +103,12 @@ def __call__(self, environ, start_response):
error = "%s\nthen submission to getexceptional failed:\n%s" % (error, error2)
response.status_int = 500
- if not self.discreet:
+ if self.discreet:
+ response.body = "An error has occured."
+ else:
response.body = "An error has occured; trace follows.\n%s" % error
+
return response(environ, start_response)

0 comments on commit 46dcafa

Please sign in to comment.