houyaf 3 rokov pred
rodič
commit
777eea7d47
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  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
+	}
 }