diff options
Diffstat (limited to 'init/action.cpp')
-rw-r--r-- | init/action.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init/action.cpp b/init/action.cpp index 94ccef2aa..a4f69367c 100644 --- a/init/action.cpp +++ b/init/action.cpp @@ -127,7 +127,7 @@ void Action::ExecuteCommand(const Command& command) const { // report such failures unless we're running at the DEBUG log level. bool report_failure = !result.has_value(); if (report_failure && android::base::GetMinimumLogSeverity() > android::base::DEBUG && - result.error_errno() == ENOENT) { + result.error().as_errno == ENOENT) { report_failure = false; } @@ -139,7 +139,7 @@ void Action::ExecuteCommand(const Command& command) const { LOG(INFO) << "Command '" << cmd_str << "' action=" << trigger_name << " (" << filename_ << ":" << command.line() << ") took " << duration.count() << "ms and " - << (result ? "succeeded" : "failed: " + result.error_string()); + << (result ? "succeeded" : "failed: " + result.error().as_string); } } |