mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-21 21:17:11 +02:00
Minor adjustment in the SQLite module statement when reporting unknown error.
This commit is contained in:
1 parent
d71f76c63b
commit
aedacab931
1 file changed
+2
-2
@@ -244,7 +244,7 @@ Int32 Statement::Exec()
|
||||
case SQLITE_BUSY: STHROWF("Database was busy");
|
||||
case SQLITE_ERROR: STHROWF("Runtime error occurred");
|
||||
case SQLITE_MISUSE: STHROWF("Statement misuse");
|
||||
default: STHROWF("Unknown failure");
|
||||
default: STHROWF("Unknown failure [%s]", m_Handle->ErrStr());
|
||||
}
|
||||
// Operation failed (shouldn't reach this point!)
|
||||
return -1;
|
||||
@@ -284,7 +284,7 @@ bool Statement::Step()
|
||||
case SQLITE_BUSY: STHROWF("Database was busy");
|
||||
case SQLITE_ERROR: STHROWF("Runtime error occurred");
|
||||
case SQLITE_MISUSE: STHROWF("Statement misuse");
|
||||
default: STHROWF("Unknown failure");
|
||||
default: STHROWF("Unknown failure [%s]", m_Handle->ErrStr());
|
||||
}
|
||||
// Operation failed (shouldn't reach this point!)
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user