mirror of
https://github.com/Jguer/yay
synced 2024-09-01 22:28:39 +00:00
Correct package range in error message
This commit is contained in:
parent
64eadcdaa2
commit
995d788e7c
2
print.go
2
print.go
|
@ -663,7 +663,7 @@ func providerMenu(dep string, providers providers) *rpc.Pkg {
|
|||
}
|
||||
|
||||
if num < 1 || num >= size {
|
||||
fmt.Fprintf(os.Stderr, "%s invalid value: %d is not between %d and %d\n", red("error:"), num, 1, size)
|
||||
fmt.Fprintf(os.Stderr, "%s invalid value: %d is not between %d and %d\n", red("error:"), num, 1, size - 1)
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue