]> Sergey Matveev's repositories - sgblog.git/commitdiff
Less panic v0.20.1
authorSergey Matveev <stargrave@stargrave.org>
Wed, 1 Sep 2021 12:40:54 +0000 (15:40 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 1 Sep 2021 12:43:36 +0000 (15:43 +0300)
cmd/sgblog/http.go
common.go

index b05df3288682609bc4f20311f8be38500ffad9ac..a811a59ac4f0e71c25cb159b2be50b2e230fd1b1 100644 (file)
@@ -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) {
index 1b7620249b1ee93cd4382873fb5d23470867bfd3..789940085aec94e5b77c4916d6db1ee7747a21aa 100644 (file)
--- 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"
 )