This commit is contained in:
@ -88,6 +88,8 @@ bool execute_local_command(const sCommand & command, cMode mode, std::string * o
|
||||
|
||||
if (hasFlag(mode, cMode::CaptureOutput)) {
|
||||
ASSERT_MSG(output != nullptr, "Capture output mode requires an output string to be provided");
|
||||
ASSERT_MSG(is_raw(mode), "Capture output mode requires raw command mode");
|
||||
ASSERT_MSG(!hasFlag(mode, cMode::Silent), "Silent mode is not allowed with capture output mode");
|
||||
|
||||
return execute_local_command_and_capture_output(command, output, mode);
|
||||
}
|
||||
|
Reference in New Issue
Block a user