Merge "conman: QCSAPI failures should not be silent."
diff --git a/conman/interface.py b/conman/interface.py
index 972b96c..4ceaf77 100755
--- a/conman/interface.py
+++ b/conman/interface.py
@@ -499,7 +499,11 @@
self._events = []
def _qcsapi(self, *command):
- return subprocess.check_output(['qcsapi'] + list(command)).strip()
+ try:
+ return subprocess.check_output(['qcsapi'] + list(command)).strip()
+ except subprocess.CalledProcessError as e:
+ logging.error('QCSAPI call failed: %s: %s', e, e.output)
+ raise
def attach(self):
self._update()