Skip to content

Commit

Permalink
Enhance error message
Browse files Browse the repository at this point in the history
  • Loading branch information
BSski committed Oct 3, 2024
1 parent 4e39390 commit 3f620cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nobl9/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func CheckDestroy(rsType string, kind manifest.Kind) func(s *terraform.State) er
return func(s *terraform.State) error {
config, ok := testProvider.Meta().(ProviderConfig)
if !ok {
return fmt.Errorf("could not cast data to ProviderConfig")
return fmt.Errorf("could not cast data to ProviderConfig, actual type: %T", testProvider.Meta())
}
client, ds := getClient(config)
if ds.HasError() {
Expand Down

0 comments on commit 3f620cd

Please sign in to comment.