Merge "Trigger the logging when prompting for wipe." am: 49dc0fed26 am: cda59a70f2
am: ad5d337832

Change-Id: I3f672481bb1057153bc35c3b9c472972f2c35e34
diff --git a/recovery.cpp b/recovery.cpp
index 6248cf7..7cc344b 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1196,6 +1196,9 @@
       status = INSTALL_ERROR;
     }
   } else if (should_prompt_and_wipe_data) {
+    // Trigger the logging to capture the cause, even if user chooses to not wipe data.
+    modified_flash = true;
+
     ui->ShowText(true);
     ui->SetBackground(RecoveryUI::ERROR);
     status = prompt_and_wipe_data(device);