summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--squaredeal/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/squaredeal/__init__.py b/squaredeal/__init__.py
index b6aa7bf..a2768bb 100644
--- a/squaredeal/__init__.py
+++ b/squaredeal/__init__.py
@@ -95,7 +95,11 @@ class SquareDealPhase(object):
'-e', reserve_info,
'-p', self._output_file_name(session+1, reserve),
'-n', board_ranges[session]]
- subprocess.run(args, cwd=output_path)
+ try:
+ subprocess.run(args, cwd=output_path, capture_output=True, check=True)
+ except subprocess.CalledProcessError as ex:
+ raise SquareDealError(ex.stderr)
+
class SquareDeal(object):