fix: rephrase rich parameters error (#6327)

This commit is contained in:
Marcin Tojek 2023-02-23 14:49:40 -07:00 committed by GitHub
parent 8abe48c155
commit 50db90c33d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -751,8 +751,7 @@ func (r *Runner) runTemplateImportProvisionWithRichParameters(ctx context.Contex
}
if len(msgType.Complete.Parameters) > 0 && len(values) > 0 {
r.logger.Info(context.Background(), "template uses rich parameters which can't be used together with legacy parameters")
return nil, nil, xerrors.Errorf("invalid use of rich parameters")
return nil, nil, xerrors.Errorf(`rich parameters can't be used together with legacy parameters, set the coder provider flag "feature_use_managed_variables = true" to enable managed variables`)
}
r.logger.Info(context.Background(), "parse dry-run provision successful",