Browse code

Always print the error to stderr (issue 46).

Suggested by musically_ut.

José Fonseca authored on 13/02/2011 23:56:14
Showing 1 changed files

  • xdot.py index e91064b..9b1eff3 100755
... ...
@@ -1458,6 +1458,7 @@ class DotWidget(gtk.DrawingArea):
1458 1458
             universal_newlines=True
1459 1459
         )
1460 1460
         xdotcode, error = p.communicate(dotcode)
1461
+        sys.stderr.write(error)
1461 1462
         if p.returncode != 0:
1462 1463
             dialog = gtk.MessageDialog(type=gtk.MESSAGE_ERROR,
1463 1464
                                        message_format=error,