Преглед изворни кода

improve error reporting for failed commands in build script

Ashish Kulkarni пре 11 година
родитељ
комит
9835501864
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      scripts/build.py

+ 1 - 1
scripts/build.py

@@ -507,7 +507,7 @@ def error(msg):
 def shell(cmd):
     ret = os.system(cmd)
     if ret != 0:
-        error("command failed: exit code %d" % ret)
+        error("%s\ncommand failed: exit code %d" % (cmd, ret))
 
 def get_output(*cmd):
     try: