wscall: show wscall error 'reason' in formdata history (#24031)

This commit is contained in:
Thomas NOËL 2018-05-23 15:55:43 +02:00
parent 04f6bc20bb
commit 3ceab69928
1 changed files with 3 additions and 2 deletions

View File

@ -66,10 +66,11 @@ class JournalWsCallErrorPart: #pylint: disable=C1001
labels = {
'err': _('Error Code'),
'err_class': _('Error Class'),
'err_desc': _('Error Description')
'err_desc': _('Error Description'),
'reason': _('Reason')
}
r += htmltext('<ul>')
for attr in ('err', 'err_class', 'err_desc'):
for attr in ('err', 'err_class', 'err_desc', 'reason'):
if attr in json_data:
r += htmltext('<li>%s: %s</li>\n' ) % (
labels.get(attr), site_encode(json_data[attr]))