PLCOpenEditor.py
changeset 540 82fa901a2160
parent 538 8c7605bbf673
child 555 b6f9d08fd69f
--- 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: