From 9b4223ea9a45fec9bee7465578b2f2fb4ecffe97 Mon Sep 17 00:00:00 2001 From: NHOrus Date: Thu, 14 Apr 2016 13:54:42 +0300 Subject: [PATCH] Error not needed in triplicate --- settings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.go b/settings.go index 6ffcc57..068170f 100644 --- a/settings.go +++ b/settings.go @@ -168,7 +168,7 @@ func (b *Bool) UnmarshalFlag(value string) error { t, err := strconv.ParseBool(value) if err != nil { - return fmt.Errorf("%s: only `true' and `false' are valid values, not `%s'", err, value) + return fmt.Errorf("only `true' and `false' are valid values, not `%s'", value) } *b = Bool(t)