Added "Staff Debug Info" prefix to traceback message.

This commit is contained in:
Will Daly
2013-03-27 11:24:16 -04:00
parent 0f5e8c5f3b
commit 6edee96caf

View File

@@ -733,7 +733,7 @@ class CapaModule(CapaFields, XModule):
# the full exception, including traceback,
# in the response
if self.system.user_is_staff:
msg = traceback.format_exc()
msg = "Staff debug info: %s" % traceback.format_exc()
# Otherwise, display just an error message,
# without a stack trace