From 2ecc0a70ca5ea3bf3f7dba633d1d5c260cf5909f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AA=E3=82=A6=E3=82=B9?= Date: Sat, 17 Oct 2020 21:13:27 +0100 Subject: [PATCH] More explicit error --- z/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/z/helpers.go b/z/helpers.go index fd09c10..b153b70 100644 --- a/z/helpers.go +++ b/z/helpers.go @@ -100,7 +100,7 @@ func ParseTime(timeStr string) (time.Time, error) { case TFRelHourMinute, TFRelHourFraction: return RelToTime(timeStr, tfId) default: - return time.Now(), errors.New("No match") + return time.Now(), errors.New("could not match passed time") } }