From 3b39a54ea34c618cc95cafc911b138ceaae61236 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Tue, 26 Oct 2010 14:04:46 -0700 Subject: [PATCH] Print last 200 lines of update_engine.log from failed update. Change-Id: I0dbc760007038086b94d534d497a7f72b957f365 BUG= TEST=Ran it on a failed update. Review URL: http://codereview.chromium.org/4137003 --- image_to_live.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/image_to_live.sh b/image_to_live.sh index 6329cafc2f..41c32e0d88 100755 --- a/image_to_live.sh +++ b/image_to_live.sh @@ -346,6 +346,8 @@ function main() { fi if [ ${FLAGS_update} -eq ${FLAGS_TRUE} ] && ! run_auto_update; then + warn "Dumping update_engine.log for debugging and/or bug reporting." + tail -n 200 "${FLAGS_update_log}" >&2 die "Update was not successful." fi