diff options
author | Darin Petkov <petkov@chromium.org> | 2010-07-20 15:03:37 -0700 |
---|---|---|
committer | Darin Petkov <petkov@chromium.org> | 2010-07-20 15:03:37 -0700 |
commit | 777dbfae01be95ac66f385cd96dc6e4b421fefe5 (patch) | |
tree | f7a9649e0afb221669674fc1e73132f75c18b65f /action_processor.h | |
parent | c97435cceaddaa7933e60a3a8d16bc26bb1fabb6 (diff) |
Narrow down to one generic error per action.
This way if we miss a spot for returning a more specific error code,
we'll at least know which action failed.
BUG=560
TEST=unit tests, gmerged and confirmed that the PostinstallRunner action
still fails...
Review URL: http://codereview.chromium.org/2819059
Diffstat (limited to 'action_processor.h')
-rw-r--r-- | action_processor.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/action_processor.h b/action_processor.h index 7b1a312d..96e16f05 100644 --- a/action_processor.h +++ b/action_processor.h @@ -25,10 +25,15 @@ namespace chromeos_update_engine { enum ActionExitCode { kActionCodeSuccess = 0, kActionCodeError = 1, - kActionCodeInstallDeviceOpenError = 2, - kActionCodeKernelDeviceOpenError = 3, - kActionCodeDownloadTransferError = 4, - kActionCodeDownloadHashMismatchError = 5, + kActionCodeOmahaRequestError = 2, + kActionCodeOmahaResponseHandlerError = 3, + kActionCodeFilesystemCopierError = 4, + kActionCodePostinstallRunnerError = 5, + kActionCodeSetBootableFlagError = 6, + kActionCodeInstallDeviceOpenError = 7, + kActionCodeKernelDeviceOpenError = 8, + kActionCodeDownloadTransferError = 9, + kActionCodeDownloadHashMismatchError = 10, }; class AbstractAction; |