Skip to content

Commit 590eeb8

Browse files
committed
Error message written in proper English
1 parent 663c3db commit 590eeb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/mlab.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2633,8 +2633,8 @@ def key_desc(name):
26332633

26342634
dt2 = r2.dtype[name]
26352635
if dt1 != dt2:
2636-
msg = "The type of the '{}' in the arrays 'r1' and 'r2' must be of"
2637-
msg += " the same type"
2636+
msg = "The '{}' fields in arrays 'r1' and 'r2' must have the same"
2637+
msg += " dtype."
26382638
raise ValueError(msg.format(name))
26392639
if dt1.num>dt2.num:
26402640
return (name, dt1.descr[0][1])

0 commit comments

Comments
 (0)