diff options
author | Jin Qian <jinqian@google.com> | 2017-08-23 11:43:57 -0700 |
---|---|---|
committer | Jin Qian <jinqian@google.com> | 2017-08-23 13:43:15 -0700 |
commit | 1e0df16e2085f343c41b4e80cd58aa98aa90157b (patch) | |
tree | 2b0b766ef1bb5ffcab86a4b49f70b6475b6be3b1 /fastboot/fastboot.cpp | |
parent | 7f16cad877571ce8ef0808dcdb81234d61b771ca (diff) |
fastboot: bail out if failed to generate fs image
we don't want to continue fastboot process if failed to
generate fs image. Print an error message and exit early.
Bug: 64915319
Change-Id: I5506d2a7a5063c188685633d6c3890239f9d658e
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r-- | fastboot/fastboot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 49d943837..5f2267c63 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -1463,7 +1463,7 @@ static void fb_perform_format(Transport* transport, if (fs_generator_generate(gen, output.path, size, initial_dir, eraseBlkSize, logicalBlkSize)) { - fprintf(stderr, "Cannot generate image: %s\n", strerror(errno)); + die("Cannot generate image for %s\n", partition); return; } |