AUP3: Display SQLite errors for now

This commit is contained in:
Leland Lucius 2020-07-08 01:11:38 -05:00
parent 88ba35f520
commit c31a034157
1 changed files with 3 additions and 1 deletions

View File

@ -685,7 +685,7 @@ bool ProjectFileIO::CheckForOrphans()
if (errmsg)
{
wxLogDebug(wxT("Failed to delete orphaned blocks: %s"), errmsg);
mLibraryError = Verbatim(wxString(errmsg));
sqlite3_free(errmsg);
}
@ -1566,9 +1566,11 @@ void ProjectFileIO::SetError(const TranslatableString &msg)
void ProjectFileIO::SetDBError(const TranslatableString &msg)
{
mLastError = msg;
wxLogDebug(wxT("SQLite error: %s"), mLastError.Debug());
if (mDB)
{
mLibraryError = Verbatim(sqlite3_errmsg(mDB));
wxLogDebug(wxT(" Lib error: %s"), mLibraryError.Debug());
}
}