databricks-cli/libs/dyn/convert/error.go

17 lines
228 B
Go
Raw Normal View History

package convert
import (
"fmt"
"github.com/databricks/cli/libs/dyn"
)
type TypeError struct {
value dyn.Value
msg string
}
func (e TypeError) Error() string {
return fmt.Sprintf("%s: %s", e.value.Location(), e.msg)
}