Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong error message #1948

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions maestro-cli/src/main/java/maestro/cli/command/TestCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,11 @@ class TestCommand : Callable<Int> {

if (flowFile.isDirectory || format != ReportFormat.NOOP) {
// Run multiple flows

if (continuous) {
throw CommandLine.ParameterException(
commandSpec.commandLine(),
"Continuous mode is not supported for directories. $flowFile is a directory",
)
val error =
if (format != ReportFormat.NOOP) "Format can not be different from NOOP in continuous mode. Passed format is $format."
else "Continuous mode is not supported for directories. $flowFile is a directory"
throw CommandLine.ParameterException(commandSpec.commandLine(), error)
}

val suiteResult = TestSuiteInteractor(
Expand Down
Loading