Skip to content

Commit f4926e5

Browse files
committed
Make new min/max error message consistent builtin error message
1 parent dbc74ad commit f4926e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/future/builtins/new_min_max.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def new_min_max(_builtin_func, *args, **kwargs):
4444
if kwargs.get('default', _SENTINEL) is not _SENTINEL:
4545
return kwargs.get('default')
4646
else:
47-
raise ValueError('iterable is an empty sequence')
47+
raise ValueError('{}() arg is an empty sequence'.format(_builtin_func.__name__))
4848
else:
4949
iterator = itertools.chain([first], iterator)
5050
if kwargs.get('key') is not None:

0 commit comments

Comments
 (0)