github.com/sleungcy-sap/cli@v7.1.0+incompatible/command/translatableerror/application_unable_to_start_error.go (about)

     1  package translatableerror
     2  
     3  type ApplicationUnableToStartError struct {
     4  	AppName    string
     5  	BinaryName string
     6  }
     7  
     8  func (ApplicationUnableToStartError) Error() string {
     9  	return "Start unsuccessful\n\nTIP: use '{{.BinaryName}} logs {{.AppName}} --recent' for more information"
    10  }
    11  
    12  func (e ApplicationUnableToStartError) Translate(translate func(string, ...interface{}) string) string {
    13  	return translate(e.Error(), map[string]interface{}{
    14  		"AppName":    e.AppName,
    15  		"BinaryName": e.BinaryName,
    16  	})
    17  }