Fix error message in sqlite connection thread check. (GH-6028)

This commit is contained in:
Takuya Akiba 2018-03-27 00:14:00 +09:00 committed by Serhiy Storchaka
parent 7c2d97827f
commit 030345c0bf
1 changed files with 2 additions and 2 deletions

View File

@ -1103,8 +1103,8 @@ int pysqlite_check_thread(pysqlite_Connection* self)
if (self->check_same_thread) {
if (PyThread_get_thread_ident() != self->thread_ident) {
PyErr_Format(pysqlite_ProgrammingError,
"SQLite objects created in a thread can only be used in that same thread."
"The object was created in thread id %lu and this is thread id %lu",
"SQLite objects created in a thread can only be used in that same thread. "
"The object was created in thread id %lu and this is thread id %lu.",
self->thread_ident, PyThread_get_thread_ident());
return 0;
}