1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 17:09:26 +02:00

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

View File

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