Fix bug when displaying errors when generating textual program in standalone mode
authorlaurent
Tue, 24 May 2011 19:37:14 +0200
changeset 540 82fa901a2160
parent 539 8dbb1de154c1
child 541 24f111835805
Fix bug when displaying errors when generating textual program in standalone mode
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Thu Apr 21 17:52:46 2011 +0200
+++ b/PLCOpenEditor.py	Tue May 24 19:37:14 2011 +0200
@@ -2661,7 +2661,7 @@
                 program, errors, warnings = self.Controler.GenerateProgram(filepath)
                 message_text += "".join([_("warning: %s\n") for warning in warnings])
                 if len(errors) > 0:
-                    message_text += "".join([_("error: %s\n") for warning in warnings])
+                    message_text += "".join([_("error: %s\n") for error in errors])
                     message_text += _("Can't generate program to file %s!")%filepath
                     header, icon = _("Error"), wx.ICON_ERROR
                 else: