houyaf 3 éve
szülő
commit
777eea7d47
1 módosított fájl, 4 hozzáadás és 1 törlés
  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
+	}
 }