houyaf 3 年之前
父节点
当前提交
777eea7d47
共有 1 个文件被更改,包括 4 次插入1 次删除
  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
+	}
 }