all repos — flounder @ c30c52b371f6740fd22fed90250659dc1ec656ab

A small site builder for the Gemini protocol

Make fix random crash I was seeing?
alex wennerberg alex@alexwennerberg.com
Thu, 14 Jan 2021 20:49:20 -0800
commit

c30c52b371f6740fd22fed90250659dc1ec656ab

parent

729f3dd39dab2712dfb264dd67fb8b4aa1d7605a

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M log.golog.go

@@ -243,11 +243,13 @@ row := db.QueryRow(`SELECT timestamp from log order by timestamp desc limit 1`)

err := row.Scan(&maxTime) if err != nil { // not perfect -- squashes errors + return } file, err := os.Open(c.LogFile) if err != nil { - log.Fatal(err) + // not perfect -- squashes errors + return } defer file.Close()