diff options
-rw-r--r-- | firmware/lib/vboot_ui.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/firmware/lib/vboot_ui.c b/firmware/lib/vboot_ui.c index 274bf978..5a663c29 100644 --- a/firmware/lib/vboot_ui.c +++ b/firmware/lib/vboot_ui.c @@ -348,11 +348,13 @@ VbError_t vb2_vendor_data_ui(struct vb2_context *ctx) vb2_nv_set(ctx, VB2_NV_DISABLE_DEV_REQUEST, 1); return VBERROR_REBOOT_REQUIRED; } else { - /* - * TODO(mathewk): If setting vendor data fails - * we should give helpful feedback to the user - */ - return ret; + vb2_error_notify( + "ERROR: Vendor data was not set.\n" + "System will now shutdown\n", + NULL, + VB_BEEP_FAILED); + VbExSleepMs(5000); + return VBERROR_SHUTDOWN_REQUESTED; } default: VB2_DEBUG("Vendor Data UI - pressed key %d\n", key); |