Commit 67140849 authored by Alex Deymo's avatar Alex Deymo
Browse files

Improve logs when the update fails due to source hash mistmatch.

The source hash mismatch at the operation level is the most likelly
error when applying an incremental update on top of a modified image.
This error can also be caught when re-reading the whole target partition
at the end of the update, but if a discrepancy on any operation is
found when applying the operations, it will fail earlier.

This patch improves the log message when this situation occurs. This is
not a common error case so a more verbose error message is acceptable
here. Previously, the error message was not giving any clue about why
was it failing.

Bug: 29163155
TEST=Modified a partition and applied a payload. Error message is nicer.

Change-Id: Ia031ed2f42f9b2ecd18bed75c949c0beed6c229e
parent 26dd80fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment