summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-11-05 22:38:38 +0100
committerandroid-build-merger <android-build-merger@google.com>2018-11-05 22:38:38 +0100
commit562440a8c9cb5592a284c832d4b18fec93773d6c (patch)
treebd635f319762c5455faae5983ac20bb01b5cef87 /updater
parentMerge "tests: Remove obsolete testdata files." am: f720da5317 am: e9f568e5e5 (diff)
parentMerge "updater: Error out on underrun during patching." am: a0404ecd16 (diff)
downloadandroid_bootable_recovery-562440a8c9cb5592a284c832d4b18fec93773d6c.tar
android_bootable_recovery-562440a8c9cb5592a284c832d4b18fec93773d6c.tar.gz
android_bootable_recovery-562440a8c9cb5592a284c832d4b18fec93773d6c.tar.bz2
android_bootable_recovery-562440a8c9cb5592a284c832d4b18fec93773d6c.tar.lz
android_bootable_recovery-562440a8c9cb5592a284c832d4b18fec93773d6c.tar.xz
android_bootable_recovery-562440a8c9cb5592a284c832d4b18fec93773d6c.tar.zst
android_bootable_recovery-562440a8c9cb5592a284c832d4b18fec93773d6c.zip
Diffstat (limited to 'updater')
-rw-r--r--updater/blockimg.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index 47849a155..c4c09098e 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -1399,7 +1399,10 @@ static int PerformCommandDiff(CommandParameters& params) {
// We expect the output of the patcher to fill the tgt ranges exactly.
if (!writer.Finished()) {
- LOG(ERROR) << "range sink underrun?";
+ LOG(ERROR) << "Failed to fully write target blocks (range sink underrun): Missing "
+ << writer.AvailableSpace() << " bytes";
+ failure_type = kPatchApplicationFailure;
+ return -1;
}
} else {
LOG(INFO) << "skipping " << blocks << " blocks already patched to " << tgt.blocks() << " ["