Skip to content

Commit

Permalink
Use different constructor to ensure message is clear.
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiamac committed Jan 19, 2020
1 parent 372a776 commit 074884c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions environs/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,13 @@ func bootstrapCAAS(
bootstrapParams environs.BootstrapParams,
) error {
if args.BuildAgent {
return errors.NewNotSupported(nil, "--build-agent when bootstrapping a k8s controller")
return errors.NotSupportedf("--build-agent when bootstrapping a k8s controller")
}
if args.BootstrapImage != "" {
return errors.NewNotSupported(nil, "--bootstrap-image when bootstrapping a k8s controller")
return errors.NotSupportedf("--bootstrap-image when bootstrapping a k8s controller")
}
if args.BootstrapSeries != "" {
return errors.NewNotSupported(nil, "--bootstrap-series when bootstrapping a k8s controller")
return errors.NotSupportedf("--bootstrap-series when bootstrapping a k8s controller")
}

constraintsValidator, err := environ.ConstraintsValidator(callCtx)
Expand Down

0 comments on commit 074884c

Please sign in to comment.