Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e0df16e authored by Jin Qian's avatar Jin Qian
Browse files

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
parent 7f16cad8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }