change bug report address for PLCOpenEditor to beremiz-devel@lists.sourceforge.net
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 28 Nov 2016 16:27:24 +0300
changeset 1580 f37b88d3edc6
parent 1579 418e6bac22e8
child 1581 2295fdc5c271
change bug report address for PLCOpenEditor to beremiz-devel@lists.sourceforge.net

make error message to be the same as in Beremiz IDE
Beremiz.py
PLCOpenEditor.py
--- a/Beremiz.py	Mon Nov 28 16:12:27 2016 +0300
+++ b/Beremiz.py	Mon Nov 28 16:27:24 2016 +0300
@@ -1185,7 +1185,7 @@
 Please be kind enough to send this file to:
 beremiz-devel@lists.sourceforge.net
 
-You should now restart Beremiz.
+You should now restart program.
 
 Traceback:
 """) % bug_report_path +
--- a/PLCOpenEditor.py	Mon Nov 28 16:12:27 2016 +0300
+++ b/PLCOpenEditor.py	Mon Nov 28 16:27:24 2016 +0300
@@ -406,16 +406,17 @@
 
     dlg = wx.SingleChoiceDialog(None,
         _("""
-An error has occurred.
-
-Click OK to save an error report.
+An unhandled exception (bug) occured. Bug report saved at :
+(%s)
 
 Please be kind enough to send this file to:
-edouard.tisserant@gmail.com
-
-Error:
-""") +
-        str(e_type) + _(" : ") + str(e_value),
+beremiz-devel@lists.sourceforge.net
+
+You should now restart program.
+
+Traceback:
+""") % bug_report_path +
+        repr(e_type) + " : " + repr(e_value),
         _("Error"),
         trcbck_lst)
     try: