Skip to content

Commit 06d7d71

Browse files
committed
Improve error message
1 parent 7732582 commit 06d7d71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/model/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def _validate(self, input):
168168
var_type = CategoricalDtype(categories=categories, ordered=True)
169169
new_cat = set(df[name].unique()).difference(categories)
170170
if len(new_cat):
171-
msg = 'Unexpected categorical value in input data: {}'.format(new_cat)
171+
msg = 'Unexpected categorical value for {}: {}'.format(name, new_cat)
172172
raise ValueError(msg)
173173
else:
174174
msg = 'Missing "categories" for "{}" in metadata'.format(name)

0 commit comments

Comments
 (0)