refac: better error msg for missing history

This commit is contained in:
yory8 2019-09-30 22:12:25 +02:00
parent 637f58f95c
commit f0cd4bcb68

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 data available")
return "", errors.New("nothing to show: no data available")
}
// output to stdout and return