refac: better error message

This commit is contained in:
yory8 2019-09-17 18:37:12 +02:00
parent 789a43de40
commit f422626935

View file

@ -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