github.com/kubeshop/testkube@v1.17.23/pkg/ui/specifics.go (about)

     1  package ui
     2  
     3  // PrintConfigError prints error message suggestion and documentation link
     4  func PrintConfigError(err error) {
     5  	ui.PrintOnError("    Can't access config file", err)
     6  	ui.Info(IconSuggestion+"  Suggestion:", "Do you have enough rights to handle the config file?")
     7  	ui.Info(IconDocumentation+"  Documentation:", "https://docs.testkube.io")
     8  }
     9  
    10  // PrintConfigApiError prints error message suggestion and documentation link
    11  func PrintConfigApiError(err error) {
    12  	ui.PrintOnError("    Can't access the API", err)
    13  	ui.Info(IconSuggestion+"  Suggestion:", "Is the API running?")
    14  	ui.Info(IconDocumentation+"  Documentation:", "https://docs.testkube.io")
    15  }