github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/pkg/steampipeconfig/validation_failure.go (about)

     1  package steampipeconfig
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  type ValidationFailure struct {
     8  	Plugin             string
     9  	ConnectionName     string
    10  	Message            string
    11  	ShouldDropIfExists bool
    12  }
    13  
    14  func (v ValidationFailure) String() string {
    15  	return fmt.Sprintf(
    16  		"Connection: %s\nPlugin:     %s\nError:      %s",
    17  		v.ConnectionName,
    18  		v.Plugin,
    19  		v.Message,
    20  	)
    21  }