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
+	}
 }