mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Tidy up some use of Error for throw
This commit is contained in:
@@ -180,8 +180,7 @@ Error statement_imp::execute()
|
||||
{
|
||||
Error error;
|
||||
|
||||
if (!m_stmt)
|
||||
Throw(Error().fail(__FILE__, __LINE__, Error::badParameter));
|
||||
check_precondition (m_stmt != nullptr);
|
||||
|
||||
// ???
|
||||
m_bGotData = false;
|
||||
@@ -253,7 +252,7 @@ bool statement_imp::fetch(Error& error)
|
||||
else
|
||||
{
|
||||
// should never get SQLITE_OK here
|
||||
Throw(Error().fail(__FILE__, __LINE__, Error::assertFailed));
|
||||
fatal_error ("invalid result");
|
||||
}
|
||||
|
||||
return m_bGotData;
|
||||
|
||||
Reference in New Issue
Block a user