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
1 file changed