Skip to content

Commit 3bb3277

Browse files
Return an error if user does not confirm flashing
1 parent 1a222db commit 3bb3277

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/updater/flasher.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ func FlashBoard(ctx context.Context, downloadedImagePath string, version string,
155155
return err
156156
}
157157
if !res {
158-
feedback.Print(i18n.Tr("Flashing not confirmed by user, exiting"))
159-
return nil
158+
return fmt.Errorf("flashing not confirmed by user, exiting")
160159
}
161160
}
162161

0 commit comments

Comments
 (0)