mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
Fix misleading error message.
This commit is contained in:
parent
9ed8ab63aa
commit
2078eff8f3
@ -730,10 +730,12 @@ bool Database::OpenDatabase(const QString& filename, sqlite3** connection) const
|
|||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
if (*connection) {
|
if (*connection) {
|
||||||
const char* error_message = _sqlite3_errmsg(*connection);
|
const char* error_message = _sqlite3_errmsg(*connection);
|
||||||
qLog(Error) << "Failed to open source database for backup:"
|
qLog(Error) << "Failed to open database for backup:"
|
||||||
|
<< filename
|
||||||
<< error_message;
|
<< error_message;
|
||||||
} else {
|
} else {
|
||||||
qLog(Error) << "Failed to open source database for backup";
|
qLog(Error) << "Failed to open database for backup:"
|
||||||
|
<< filename;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user