github.com/sleungcy-sap/cli@v7.1.0+incompatible/command/translatableerror/route_in_different_space_error.go (about)

     1  package translatableerror
     2  
     3  type RouteInDifferentSpaceError struct {
     4  	Route string
     5  }
     6  
     7  func (e RouteInDifferentSpaceError) Error() string {
     8  	return "The app cannot be mapped to route {{.URL}} because the route exists in a different space."
     9  }
    10  
    11  func (e RouteInDifferentSpaceError) Translate(translate func(string, ...interface{}) string) string {
    12  	return translate(e.Error(), map[string]interface{}{
    13  		"URL": e.Route,
    14  	})
    15  }