From 2078eff8f3baaa36e1074a0f13d53402f6e99d05 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Fri, 16 Mar 2012 15:47:25 +0100 Subject: [PATCH] Fix misleading error message. --- src/core/database.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/database.cpp b/src/core/database.cpp index 345edf809..1b8abe1f8 100644 --- a/src/core/database.cpp +++ b/src/core/database.cpp @@ -730,10 +730,12 @@ bool Database::OpenDatabase(const QString& filename, sqlite3** connection) const if (ret != 0) { if (*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; } else { - qLog(Error) << "Failed to open source database for backup"; + qLog(Error) << "Failed to open database for backup:" + << filename; } return false; }