Merge pull request #1000 from kiendang/print-size

Correct package range in error message
This commit is contained in:
J Guerreiro 2019-07-31 10:43:53 +01:00 committed by GitHub
commit c9f7105481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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