github.com/randomtask1155/cli@v6.41.1-0.20181227003417-a98eed78cbde+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 }