summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-03-08 12:19:24 -0700
committerGitHub <noreply@github.com>2018-03-08 12:19:24 -0700
commitfdf4926b7af50707461f3fe96ede865dd7dfb0e6 (patch)
tree92ef31f1f55b3b0cf35038be845ab8e809475621 /numpy/lib/function_base.py
parent6fb8622539ad547c76be38757d6841d70e23b065 (diff)
parent6e6602ef7dc2168138959522b18afe556bc1321e (diff)
downloadnumpy-fdf4926b7af50707461f3fe96ede865dd7dfb0e6.tar.gz
Merge pull request #10710 from louispotok/select-error-message
BUG: fix error message in numpy.select
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 7b0c3007b..422a87322 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -632,7 +632,7 @@ def select(condlist, choicelist, default=0):
deprecated_ints = True
else:
raise ValueError(
- 'invalid entry in choicelist: should be boolean ndarray')
+ 'invalid entry {} in condlist: should be boolean ndarray'.format(i))
if deprecated_ints:
# 2014-02-24, 1.9