summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2016-06-15 13:28:59 -0700
committerAlex Deymo <deymo@google.com>2016-06-15 13:35:19 -0700
commit6714084915ea7b66accf933344b0d4cd042dff3d (patch)
treed9291b5aaf8707b92194f6bc8cadadc017729793 /scripts/update_payload/format_utils.py
parent26dd80fb16617f0d78be938a9e2592f2c0e50365 (diff)
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
Diffstat (limited to 'scripts/update_payload/format_utils.py')
0 files changed, 0 insertions, 0 deletions