Procházet zdrojové kódy

wxGUI: report OSError when running command

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49584 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa před 13 roky
rodič
revize
e30a017a96
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      gui/wxpython/core/gcmd.py

+ 2 - 0
gui/wxpython/core/gcmd.py

@@ -524,8 +524,10 @@ class CommandThread(Thread):
                                 stdout = subprocess.PIPE,
                                 stderr = subprocess.PIPE,
                                 shell = sys.platform == "win32")
+            
         except OSError, e:
             self.error = str(e)
+            print >> sys.stderr, e
             return 1
         
         if self.stdin: # read stdin if requested ...