From f47d065244cb5f9bda1bca2e233c6b7ae56d6183 Mon Sep 17 00:00:00 2001 From: Arran Ubels Date: Thu, 16 Feb 2023 12:26:40 +1100 Subject: [PATCH] Minor text error correction If you provide a message, time.ParseError puts a quoted version of the text already here: https://github.com/golang/go/blob/55044288ad22f0c46ac55375ed9ef3de1babb77c/src/time/format.go#L894-L895 --- automation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation.go b/automation.go index db04c50..6054d6d 100644 --- a/automation.go +++ b/automation.go @@ -313,7 +313,7 @@ func (ld *LocaleDetector) Parse(layout, value string) (time.Time, error) { return time.Time{}, &time.ParseError{ Value: value, Layout: layout, - Message: fmt.Sprintf("'%s' not matches to '%s' last error position = %d\n", value, layout, ld.lastErrorPosition), + Message: fmt.Sprintf(" doesn't match '%s' last error position = %d\n", value, layout, ld.lastErrorPosition), } }