OpenSecurity/bin/opensecurity_client_restful_server.py
changeset 209 cc8a15da3a13
parent 208 973b5888eec6
child 221 853af9cfab6a
     1.1 --- a/OpenSecurity/bin/opensecurity_client_restful_server.py	Thu Jun 26 12:14:08 2014 +0200
     1.2 +++ b/OpenSecurity/bin/opensecurity_client_restful_server.py	Thu Jun 26 12:33:55 2014 +0200
     1.3 @@ -579,7 +579,7 @@
     1.4  
     1.5                  # invoke the user dialog as a subprocess
     1.6                  dlg_image = os.path.join(sys.path[0], 'opensecurity_dialog.pyw')
     1.7 -                dlg_process_command = [sys.executable, dlg_image, 'notification-critical', 'Error is<br/>Code: {0!s}<br/><b>{1}</b>'.format(e.code, e.reason)]
     1.8 +                dlg_process_command = [sys.executable, dlg_image, 'notification-critical', 'Error is<br/>Code: {0!s}<br/>Reason: {1}<br/>{2}'.format(e.code, e.reason, e.read())]
     1.9                  dlg_process = subprocess.Popen(dlg_process_command, shell = False, stdout = subprocess.PIPE)
    1.10                  dlg_process.communicate()[0]
    1.11