From: Sergey Matveev Date: Wed, 1 Sep 2021 12:40:54 +0000 (+0300) Subject: Less panic X-Git-Tag: v0.20.1^0 X-Git-Url: http://www.git.stargrave.org/?p=sgblog.git;a=commitdiff_plain;h=50e6f2909c6f56911491e28f622ef3b43d9331d6 Less panic --- diff --git a/cmd/sgblog/http.go b/cmd/sgblog/http.go index b05df32..a811a59 100644 --- a/cmd/sgblog/http.go +++ b/cmd/sgblog/http.go @@ -231,7 +231,7 @@ func startHeader(etag hash.Hash, gziped bool) string { func makeErr(err error) { fmt.Print("Content-Type: text/plain; charset=UTF-8\n\n") fmt.Println(err) - panic(err) + log.Fatalln(err) } func checkETag(etag hash.Hash) { diff --git a/common.go b/common.go index 1b76202..7899400 100644 --- a/common.go +++ b/common.go @@ -15,7 +15,7 @@ import ( ) const ( - Version = "0.20.0" + Version = "0.20.1" WhenFmt = "2006-01-02 15:04:05Z07:00" )