(#916) fixed missing call to Validate when using CommandConstructorBinder

This commit is contained in:
Nils Andresen
2022-08-17 16:18:13 +02:00
committed by Patrik Svensson
parent 78d841e3dc
commit 0d19ccd8a6
5 changed files with 65 additions and 0 deletions

View File

@ -45,6 +45,13 @@ internal static class CommandConstructorBinder
}
}
// Validate the settings.
var validationResult = settings.Validate();
if (!validationResult.Successful)
{
throw CommandRuntimeException.ValidationFailed(validationResult);
}
return settings;
}
}