From b95c00a12d79262dab0c080e29d2621d9c9f0128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AA=E3=82=A6=E3=82=B9?= Date: Sun, 11 Oct 2020 21:14:22 +0100 Subject: [PATCH] Replace fatals with returns --- z/entry.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/z/entry.go b/z/entry.go index f8174b3..d02660e 100644 --- a/z/entry.go +++ b/z/entry.go @@ -1,7 +1,7 @@ package z import ( - "log" + "errors" "time" ) @@ -30,7 +30,6 @@ func NewEntry( } else { beginTime, err = ParseTime(begin) if err != nil { - log.Fatalln("Could not parse begin time!") return Entry{}, err } } @@ -38,7 +37,6 @@ func NewEntry( if finish != "" { finishTime, err = ParseTime(finish) if err != nil { - log.Fatalln("Could not parse finish time!") return Entry{}, err } }