Skip to content

Commit d45946b

Browse files
vitaly-burovoyelprans
authored andcommitted
Make error message be the same as in the "_get_array_shape" function.
1 parent bb8a94a commit d45946b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

asyncpg/protocol/codecs/array.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ cdef inline array_decode(ConnectionSettings settings, FastReadBuffer buf,
152152

153153
if ndims > ARRAY_MAXDIM:
154154
raise RuntimeError(
155-
'number of array dimensions exceed the maximum expected ({})'.
156-
format(ARRAY_MAXDIM))
155+
'number of array dimensions ({}) exceed the maximum expected ({})'.
156+
format(ndims, ARRAY_MAXDIM))
157157

158158
if decoder == NULL:
159159
# No decoder is known beforehand, look it up

0 commit comments

Comments
 (0)