summaryrefslogtreecommitdiff
path: root/host/lib/cbfstool.c
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/cbfstool.c')
-rw-r--r--host/lib/cbfstool.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/host/lib/cbfstool.c b/host/lib/cbfstool.c
index ff70f3d2..8f547066 100644
--- a/host/lib/cbfstool.c
+++ b/host/lib/cbfstool.c
@@ -48,8 +48,11 @@ vb2_error_t cbfstool_truncate(const char *file, const char *region,
status = subprocess_run(argv, &subprocess_null, &output,
&subprocess_null);
- if (status < 0)
- return VB2_ERROR_CBFSTOOL;
+ if (status < 0) {
+ fprintf(stderr, "%s(): cbfstool invocation failed: %m\n",
+ __func__);
+ exit(1);
+ }
/* Positive exit code means something is wrong with image. Return zero
as new size, because it might be problem with missing CBFS.*/