Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r46483:3be002cc751f
Date: 2011-08-13 20:59 +0200
http://bitbucket.org/pypy/pypy/changeset/3be002cc751f/

Log:    Improve the error message in _sqlite3. Mostly useful for debugging
        PyPy itself...

diff --git a/lib_pypy/_sqlite3.py b/lib_pypy/_sqlite3.py
--- a/lib_pypy/_sqlite3.py
+++ b/lib_pypy/_sqlite3.py
@@ -901,7 +901,8 @@
             raise self.con._get_exception(ret)
         self.con._remember_statement(self)
         if _check_remaining_sql(next_char.value):
-            raise Warning, "One and only one statement required"
+            raise Warning, "One and only one statement required: %r" % (
+                next_char.value,)
 
         self._build_row_cast_map()
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to