commit | 9a06922acf8ceea21f35b3020da19244515f629d | [log] [tgz] |
---|---|---|
author | Alex Deymo <deymo@google.com> | Wed Mar 02 16:14:42 2016 -0800 |
committer | Alex Deymo <deymo@google.com> | Fri Mar 04 18:00:26 2016 -0800 |
tree | 89a82630ef9d4158587892082fc03f4aef6100c4 | |
parent | 991b7782ffe38fa634a03c2790b19407343f0e16 [diff] |
update_engine_client: Print the last error code on failure. When calling `update_engine_client --update` we wait for the update to complete and print the status (either IDLE or REBOOT_NEEDED) on the terminal, but we don't show the error code. This patch reports the last error when the update fails back to the user in the terminal. Bug: 25598547 TEST=`update_engine_client --update` with an invalid package. Change-Id: Ia1d42201321ffc1374f44f36cbcefd162a9f786f