neuralworm commited on
Commit
3d8f0a8
·
verified ·
1 Parent(s): cc95d1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -41,7 +41,8 @@ def run_capture(cmd):
41
  result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
42
  if result.returncode != 0:
43
  err_tail = result.stderr[-1000:] if result.stderr else ""
44
- raise RuntimeError(f"Command failed: {' '.join(cmd)}
 
45
  {err_tail}")
46
  return result.stdout
47
 
 
41
  result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
42
  if result.returncode != 0:
43
  err_tail = result.stderr[-1000:] if result.stderr else ""
44
+ raise RuntimeError("Command failed: " + " ".join(cmd) + "
45
+ " + err_tail)
46
  {err_tail}")
47
  return result.stdout
48