Skip to content

Commit

Permalink
fix: Improve error messaging on unsupported resource types. Closes is…
Browse files Browse the repository at this point in the history
…sue #31 (#32)

Signed-off-by: Kyra Cho <[email protected]>
  • Loading branch information
kyracho authored Sep 7, 2024
1 parent ed404d0 commit 2cfb678
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/provisioners/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ func ProvisionResources(ctx context.Context, state *project.State, provisioners
return provisioner.Match(resUid)
})
if provisionerIndex < 0 {
return nil, fmt.Errorf("resource '%s' is not supported by any provisioner", resUid)
return nil, fmt.Errorf("resource '%s' is not supported by any provisioner. "+
"Please implement a custom resource provisioner to support this resource type.", resUid)
}
provisioner := provisioners[provisionerIndex]
if resState.ProvisionerUri != "" && resState.ProvisionerUri != provisioner.Uri() {
Expand Down

0 comments on commit 2cfb678

Please sign in to comment.