github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+incompatible/command/translatableerror/route_path_with_tcp_domain_error.go (about)

     1  package translatableerror
     2  
     3  type RoutePathWithTCPDomainError struct{}
     4  
     5  func (RoutePathWithTCPDomainError) Error() string {
     6  	return "The route is invalid: a route path cannot be used with a TCP domain."
     7  }
     8  
     9  func (e RoutePathWithTCPDomainError) Translate(translate func(string, ...interface{}) string) string {
    10  	return translate(e.Error())
    11  }