Loading error_code.h +1 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ enum ErrorCode { kZipOpenFailure, kBootreasonInBlacklist, kPackageCompatibilityFailure, kScriptExecutionFailure, }; enum CauseCode { Loading updater/updater.cpp +9 −7 Original line number Diff line number Diff line Loading @@ -193,14 +193,16 @@ int main(int argc, char** argv) { } } if (state.error_code != kNoError) { // Installation has been aborted. Set the error code to kScriptExecutionFailure unless // a more specific code has been set in errmsg. if (state.error_code == kNoError) { state.error_code = kScriptExecutionFailure; } fprintf(cmd_pipe, "log error: %d\n", state.error_code); // Cause code should provide additional information about the abort; // report only when an error exists. // Cause code should provide additional information about the abort. if (state.cause_code != kNoCause) { fprintf(cmd_pipe, "log cause: %d\n", state.cause_code); } } if (updater_info.package_zip) { CloseArchive(updater_info.package_zip); Loading Loading
error_code.h +1 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ enum ErrorCode { kZipOpenFailure, kBootreasonInBlacklist, kPackageCompatibilityFailure, kScriptExecutionFailure, }; enum CauseCode { Loading
updater/updater.cpp +9 −7 Original line number Diff line number Diff line Loading @@ -193,14 +193,16 @@ int main(int argc, char** argv) { } } if (state.error_code != kNoError) { // Installation has been aborted. Set the error code to kScriptExecutionFailure unless // a more specific code has been set in errmsg. if (state.error_code == kNoError) { state.error_code = kScriptExecutionFailure; } fprintf(cmd_pipe, "log error: %d\n", state.error_code); // Cause code should provide additional information about the abort; // report only when an error exists. // Cause code should provide additional information about the abort. if (state.cause_code != kNoCause) { fprintf(cmd_pipe, "log cause: %d\n", state.cause_code); } } if (updater_info.package_zip) { CloseArchive(updater_info.package_zip); Loading