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
diff --git a/action_processor.h b/action_processor.h
index 7b1a312..96e16f0 100644
--- a/action_processor.h
+++ b/action_processor.h
@@ -25,10 +25,15 @@
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;