فهرست منبع

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,
                                 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 ...