From f422626935b93f68abebcbf7eed34a14da1984a3 Mon Sep 17 00:00:00 2001 From: yory8 <> Date: Tue, 17 Sep 2019 18:37:12 +0200 Subject: [PATCH] refac: better error message --- selector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selector.go b/selector.go index 9f18f4f..85328ca 100644 --- a/selector.go +++ b/selector.go @@ -11,7 +11,7 @@ import ( func selector(data []string, max int, tool string) (string, error) { if len(data) == 0 { - return "", errors.New("No history available") + return "", errors.New("no data available") } // output to stdout and return