Эх сурвалжийг харах

improve error reporting for failed commands in build script

Ashish Kulkarni 11 жил өмнө
parent
commit
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: