summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils_unittest.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2016-06-15 13:28:59 -0700
committerAlex Deymo <deymo@google.com>2016-08-04 17:27:26 -0700
commit12c05ee6f9a46253d5f47d1e099086a833be5f5b (patch)
treef3e6016aef4a9f45796535b65ac70fe6f6f564b9 /scripts/update_payload/format_utils_unittest.py
parentb729f5c39691f254beb6fabc185a0db6e47542b9 (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 Bug: 30510360 TEST=Modified a partition and applied a payload. Error message is nicer. (cherry picked from commit 6714084915ea7b66accf933344b0d4cd042dff3d) Change-Id: I0e7ad33006b0d2475bbb3681ad313fb3eb4b3747
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions