Commit ecaa5831 by John Wright Committed by Orlando Vazquez

return sqlite error msg from prepare

parent 8eaa99eb
...@@ -343,7 +343,8 @@ protected: ...@@ -343,7 +343,8 @@ protected:
// if the prepare failed // if the prepare failed
if (req->result != SQLITE_OK) { if (req->result != SQLITE_OK) {
argv[0] = Exception::Error(String::New("Error preparing statement")); argv[0] = Exception::Error(
String::New(sqlite3_errmsg(prep_req->dbo->db_)));
argc = 1; argc = 1;
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment