mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-25 14:28:20 +08:00
Merge pull request #285 from grissiom/better-tools
tools/building.py: more descriptive on error
This commit is contained in:
+3
-2
@@ -43,8 +43,9 @@ class Win32Spawn:
|
|||||||
proc = subprocess.Popen(cmdline, env=_e,
|
proc = subprocess.Popen(cmdline, env=_e,
|
||||||
startupinfo=startupinfo, shell=False)
|
startupinfo=startupinfo, shell=False)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print 'Error in Popen: %s' % e
|
print 'Error in calling:\n%s' % cmdline
|
||||||
return -1
|
print 'Exception: %s: %s' % (e, os.strerror(e.errno))
|
||||||
|
return e.errno
|
||||||
finally:
|
finally:
|
||||||
os.environ['PATH'] = old_path
|
os.environ['PATH'] = old_path
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user