github.com/Thanhphan1147/cloudfoundry-cli@v7.1.0+incompatible/actor/actionerror/service_instance_not_found_error.go (about) 1 package actionerror 2 3 import "fmt" 4 5 type ServiceInstanceNotFoundError struct { 6 GUID string 7 Name string 8 } 9 10 func (e ServiceInstanceNotFoundError) Error() string { 11 if e.Name == "" { 12 return fmt.Sprintf("Service instance (GUID: %s) not found.", e.GUID) 13 } 14 return fmt.Sprintf("Service instance '%s' not found.", e.Name) 15 }