.
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 24s

This commit is contained in:
Your Name
2025-05-06 22:31:57 +12:00
parent ac797e111c
commit cca3ee9679
3 changed files with 19 additions and 35 deletions

View File

@ -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);
}