mirror of
https://github.com/kataras/iris.git
synced 2026-01-04 18:57:03 +00:00
Upgrade to new go errors and some minor fixes and improvements including easier debugging of invalid routes and e.t.c.
Former-commit-id: 5809157b952ccc61a67a9861470774b3a6fee024
This commit is contained in:
@@ -3,6 +3,7 @@ package host
|
||||
import (
|
||||
"context"
|
||||
"crypto/tls"
|
||||
"errors"
|
||||
"net"
|
||||
"net/http"
|
||||
"strings"
|
||||
@@ -12,7 +13,6 @@ import (
|
||||
|
||||
"golang.org/x/crypto/acme/autocert"
|
||||
|
||||
"github.com/kataras/iris/core/errors"
|
||||
"github.com/kataras/iris/core/netutil"
|
||||
)
|
||||
|
||||
@@ -260,7 +260,7 @@ func (su *Supervisor) ListenAndServeTLS(certFile string, keyFile string) error {
|
||||
}
|
||||
|
||||
if su.Server.TLSConfig == nil {
|
||||
return errors.New("certFile or keyFile missing")
|
||||
return errors.New("empty certFile or keyFile and Server.TLSConfig")
|
||||
}
|
||||
|
||||
return su.supervise(func() error { return su.Server.ListenAndServeTLS("", "") })
|
||||
|
||||
Reference in New Issue
Block a user