Skip to content

Commit 78cc4ac

Browse files
committed
Pass result of RunAndCaptureStdout from cvd display commands
Small fix for 57a27ae .
1 parent c96a986 commit 78cc4ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/cvd/cuttlefish/host/libs/vm_manager/crosvm_display_controller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ Result<int> CrosvmDisplayController::RunCrosvmDisplayCommand(
107107

108108
Result<std::string> res = RunAndCaptureStdout(std::move(command));
109109
if (res.ok()) {
110+
*stdout_str = CF_EXPECT(std::move(res));
110111
return 0;
111112
} else {
112113
LOG(ERROR) << "Failed to run crosvm display command:\n"
113114
<< res.error().FormatForEnv();
114-
CF_EXPECT(std::move(res));
115115
return 0;
116116
}
117117
}

0 commit comments

Comments
 (0)