github.com/loafoe/cli@v7.1.0+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 }