Merge pull request #22457 from edx/dsheraz/PROD-1000-logs

log exception for further context
This commit is contained in:
AsadAzam
2019-12-06 15:42:11 +05:00
committed by GitHub

View File

@@ -441,6 +441,7 @@ class CapaMixin(ScorableXBlockMixin, CapaFields):
})
def handle_fatal_lcp_error(self, error):
log.exception(u"LcpFatalError Encountered for {block}".format(block=str(self.location)))
if error:
return(
HTML(u'<p>Error formatting HTML for problem:</p><p><pre style="color:red">{msg}</pre></p>').format(