break;
case BT_CMD_STATUS_ERROR:
retcode = 1;
- print_error_causes();
break;
case BT_CMD_STATUS_INTERRUPTED:
retcode = 2;
}
end:
+ if (retcode == 1) {
+ print_error_causes();
+ }
+
BT_OBJECT_PUT_REF_AND_RESET(cfg);
fini_loaded_plugins();
bt_interrupter_put_ref(the_interrupter);