[pypy-commit] pypy default: Improve the error message in _sqlite3. Mostly useful for debugging
arigo
noreply at buildbot.pypy.org
Sat Aug 13 21:45:21 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
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()
More information about the pypy-commit
mailing list