Skip to content

bug(provisioner): unclear error when not passing provisioner key details #20781

@phorcys420

Description

@phorcys420

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When not passing the URL properly to the provisioner, you will meet a very unclear error, as the actual error is not preserved:

if provisionerKey != "" {
pkDetails, err := client.GetProvisionerKey(ctx, provisionerKey)
if err != nil {
return xerrors.New("unable to get provisioner key details")
}

This should be changed to tell you the actual values that are missing.

Relevant Log Output

Encountered an error running "coder provisionerd start", see "coder provisionerd start --help" for more information
error: unable to get provisioner key details

Expected Behavior

No response

Steps to Reproduce

  1. Do not pass the provisioner Key details

Environment

No response

Additional Context

The issue occurs consistently

Metadata

Metadata

Assignees

Labels

s2Broken use cases or features (with a workaround). Only humans may set this.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions