PLCOpenEditor.py
changeset 171 e3d47b4bbd5d
parent 163 e4949f54c5d6
child 176 18af41faafd1
--- a/PLCOpenEditor.py	Tue Feb 26 15:15:27 2008 +0100
+++ b/PLCOpenEditor.py	Tue Feb 26 15:16:30 2008 +0100
@@ -703,8 +703,8 @@
             filepath = dialog.GetPath()
             if os.path.isdir(os.path.dirname(filepath)):
                 result = self.Controler.GenerateProgram(filepath)
-                if not result:
-                    message = wx.MessageDialog(self, "Can't generate program to file %s!"%filepath, "Error", wx.OK|wx.ICON_ERROR)
+                if result is not None:
+                    message = wx.MessageDialog(self, "Can't generate program to file %s :\n%s"%(filepath, result), "Error", wx.OK|wx.ICON_ERROR)
                     message.ShowModal()
                     message.Destroy()
                 else: