github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+incompatible/actor/actionerror/application_not_found_error.go (about)

     1  package actionerror
     2  
     3  import "fmt"
     4  
     5  // ApplicationNotFoundError is returned when a requested application is not
     6  // found.
     7  type ApplicationNotFoundError struct {
     8  	GUID string
     9  	Name string
    10  }
    11  
    12  func (e ApplicationNotFoundError) Error() string {
    13  	if e.GUID != "" {
    14  		return fmt.Sprintf("Application with GUID '%s' not found.", e.GUID)
    15  	}
    16  
    17  	return fmt.Sprintf("Application '%s' not found.", e.Name)
    18  }