# HG changeset patch # User laurent # Date 1306258634 -7200 # Node ID 82fa901a216085d96ea3f7252e9b4e737897b664 # Parent 8dbb1de154c15e093da8a9dd933da558cb3ce70e Fix bug when displaying errors when generating textual program in standalone mode diff -r 8dbb1de154c1 -r 82fa901a2160 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: