Author: Armin Rigo <ar...@tunes.org>
Branch: unicode-utf8
Changeset: r93984:ead419b87760
Date: 2018-03-17 17:21 +0100
http://bitbucket.org/pypy/pypy/changeset/ead419b87760/

Log:    (mattip, arigo)

        Improve error message for now

diff --git a/pypy/module/array/interp_array.py 
b/pypy/module/array/interp_array.py
--- a/pypy/module/array/interp_array.py
+++ b/pypy/module/array/interp_array.py
@@ -1034,7 +1034,9 @@
                     return space.newutf8(rutf8.unichr_as_utf8(code), 1)
                 except ValueError:
                     raise oefmt(space.w_ValueError,
-                        "character is not in range [U+0000; U+10ffff]")
+                        "array contains a 32-bit integer that is outside "
+                        "the range [U+0000; U+10ffff] of valid unicode "
+                        "characters")
             assert 0, "unreachable"
 
         # interface
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to