Skip to content

Commit

Permalink
Bug 920703 - Give an informative error message when expandlibs_exec f…
Browse files Browse the repository at this point in the history
…ails. r=glandium
  • Loading branch information
joneschrisg committed Sep 26, 2013
1 parent 7663e2c commit e81d87a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion config/expandlibs_exec.py
Expand Up @@ -318,7 +318,11 @@ def main():

if options.verbose:
print_command(sys.stderr, args)
proc = subprocess.Popen(args, stdout = subprocess.PIPE, stderr = subprocess.STDOUT)
try:
proc = subprocess.Popen(args, stdout = subprocess.PIPE, stderr = subprocess.STDOUT)
except Exception, e:
print >>sys.stderr, 'error: Launching', args, ':', e
raise e
(stdout, stderr) = proc.communicate()
if proc.returncode and not options.verbose:
print_command(sys.stderr, args)
Expand Down
6 changes: 5 additions & 1 deletion js/src/config/expandlibs_exec.py
Expand Up @@ -318,7 +318,11 @@ def main():

if options.verbose:
print_command(sys.stderr, args)
proc = subprocess.Popen(args, stdout = subprocess.PIPE, stderr = subprocess.STDOUT)
try:
proc = subprocess.Popen(args, stdout = subprocess.PIPE, stderr = subprocess.STDOUT)
except Exception, e:
print >>sys.stderr, 'error: Launching', args, ':', e
raise e
(stdout, stderr) = proc.communicate()
if proc.returncode and not options.verbose:
print_command(sys.stderr, args)
Expand Down

0 comments on commit e81d87a

Please sign in to comment.