Skip to content

Commit

Permalink
nuke-build#1491 Do not list unlisted targets in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Roadrunner67 committed Jan 1, 2025
1 parent b567c75 commit fedfa65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Nuke.Build/Execution/ExecutionPlanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private static ExecutableTarget GetExecutableTarget(
if (executableTarget == null)
{
Assert.Fail($"Target with name {targetName.SingleQuote()} does not exist. Available targets are:"
.Concat(executableTargets.Select(x => $" - {x.Name}").OrderBy(x => x))
.Concat(executableTargets.Where(x => x.Listed).Select(x => $" - {x.Name}").OrderBy(x => x))
.JoinNewLine());
}

Expand Down

0 comments on commit fedfa65

Please sign in to comment.