mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-02-21 20:27:13 +01:00
Minor adjustment in the SQLite module statement when reporting unknown error.
This commit is contained in:
parent
d71f76c63b
commit
aedacab931
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user