Projet

Général

Profil

0001-wscall-show-wscall-error-reason-in-formdata-history-.patch

Thomas Noël, 23 mai 2018 15:59

Télécharger (1,16 ko)

Voir les différences:

Subject: [PATCH] wscall: show wscall error 'reason' in formdata history
 (#24031)

 wcs/wf/wscall.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
wcs/wf/wscall.py
66 66
                labels = {
67 67
                    'err': _('Error Code'),
68 68
                    'err_class': _('Error Class'),
69
                    'err_desc': _('Error Description')
69
                    'err_desc': _('Error Description'),
70
                    'reason': _('Reason')
70 71
                }
71 72
                r += htmltext('<ul>')
72
                for attr in ('err', 'err_class', 'err_desc'):
73
                for attr in ('err', 'err_class', 'err_desc', 'reason'):
73 74
                    if attr in json_data:
74 75
                        r += htmltext('<li>%s: %s</li>\n' ) % (
75 76
                                labels.get(attr), site_encode(json_data[attr]))
76
-