Browse Source

Merge branch 'develop'

Manu Mtz-Almeida 11 years ago
parent
commit
28bf3981b0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      gin.go

+ 3 - 1
gin.go

@@ -129,7 +129,9 @@ func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Request) {
 }
 
 func (engine *Engine) Run(addr string) {
-	http.ListenAndServe(addr, engine)
+	if err := http.ListenAndServe(addr, engine); err != nil {
+		panic(err)
+	}
 }
 
 /************************************/