File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -711,8 +711,8 @@ func (h *ServiceHandler) setDefaultPortsAndRoutes(definition *koyeb.DeploymentDe
711
711
definition .SetRoutes (h .getDeploymentRoute (8000 ))
712
712
713
713
// When one or more ports are set but no route is explicitly configured:
714
- // - if only one HTTP port is defined, create the default route using that port
715
- // - if more than one HTTP port is set, we return an error as we can't determine routes configuration
714
+ // - if only one HTTP/HTTP2 port is defined, create the default route using that port
715
+ // - if more than one HTTP/HTTP2 port is set, we return an error as we can't determine routes configuration
716
716
case len (currentPorts ) > 0 && len (currentRoutes ) == 0 :
717
717
httpPorts := []koyeb.DeploymentPort {}
718
718
@@ -729,9 +729,9 @@ func (h *ServiceHandler) setDefaultPortsAndRoutes(definition *koyeb.DeploymentDe
729
729
if len (httpPorts ) > 1 {
730
730
return & errors.CLIError {
731
731
What : "Error while configuring the service" ,
732
- Why : `your service has two or more HTTP ports set but no matching routes` ,
732
+ Why : `your service has two or more HTTP/HTTP2 ports set but no matching routes` ,
733
733
Additional : []string {
734
- "For each HTTP port, you must specify a matching route with the --routes flag" ,
734
+ "For each HTTP/HTTP2 port, you must specify a matching route with the --routes flag" ,
735
735
},
736
736
Orig : nil ,
737
737
Solution : "Set the routes and try again" ,
You can’t perform that action at this time.
0 commit comments