Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardfeng-db committed Aug 21, 2024
1 parent aaf8583 commit a744e6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/pluginframework/tfschema/customizable_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package tfschema

import (
"fmt"
"reflect"

"github.com/databricks/terraform-provider-databricks/common"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
Expand Down Expand Up @@ -62,7 +63,7 @@ func (s *CustomizableSchema) AddValidator(v any, path ...string) *CustomizableSc
case StringAttributeBuilder:
return a.AddValidator(v.(validator.String))
default:
panic(fmt.Errorf("cannot add validator, attribute builder type is invalid. %s", common.TerraformBugErrorMessage))
panic(fmt.Errorf("cannot add validator, attribute builder type is invalid: %s. %s", reflect.TypeOf(attr).String(), common.TerraformBugErrorMessage))
}
}

Expand Down

0 comments on commit a744e6e

Please sign in to comment.