瀏覽代碼

wxGUI: report OSError when running command

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49584 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父節點
當前提交
e30a017a96
共有 1 個文件被更改,包括 2 次插入0 次删除
  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,
                                 stdout = subprocess.PIPE,
                                 stderr = subprocess.PIPE,
                                 stderr = subprocess.PIPE,
                                 shell = sys.platform == "win32")
                                 shell = sys.platform == "win32")
+            
         except OSError, e:
         except OSError, e:
             self.error = str(e)
             self.error = str(e)
+            print >> sys.stderr, e
             return 1
             return 1
         
         
         if self.stdin: # read stdin if requested ...
         if self.stdin: # read stdin if requested ...