diff --git a/commands/request.go b/commands/request.go index 774fdf6f34f635e92ee43aaaa2b8a638fcd1088c..d71011d914ed8301beae7e1247140570a057be70 100644 --- a/commands/request.go +++ b/commands/request.go @@ -223,8 +223,12 @@ func (r *request) ConvertOptions() error { } val, err := convert(str) if err != nil { - return fmt.Errorf("Could not convert string value '%s' to type '%s'", - v, opt.Type.String()) + value := fmt.Sprintf("value '%v'", v) + if len(str) == 0 { + value = "empty value" + } + return fmt.Errorf("Could not convert %s to type '%s' (for option '-%s')", + value, opt.Type.String(), k) } r.options[k] = val