houyaf hace 3 años
padre
commit
777eea7d47
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      bootstrap/bootstrapper.go

+ 4 - 1
bootstrap/bootstrapper.go

@@ -46,5 +46,8 @@ func (b *Bootstrapper) Bootstrap() *Bootstrapper {
 }
 
 func (b *Bootstrapper) Listen(addr string, cfgs ...iris.Configurator) {
-	b.Run(iris.Addr(addr), cfgs...)
+	err := b.Run(iris.Addr(addr), cfgs...)
+	if err != nil {
+		return
+	}
 }