github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/command/translatableerror/staging_failed_error.go (about)

     1  package translatableerror
     2  
     3  type StagingFailedError struct {
     4  	Message string
     5  }
     6  
     7  func (StagingFailedError) Error() string {
     8  	return "Error staging application: {{.Message}}"
     9  }
    10  
    11  func (e StagingFailedError) Translate(translate func(string, ...interface{}) string) string {
    12  	return translate(e.Error(), map[string]interface{}{
    13  		"Message": e.Message,
    14  	})
    15  }