Verified Commit 432945a8 authored by Arcadie Cracan's avatar Arcadie Cracan Committed by Daniel Vrátil

Use get_description() instead of get_error_message() to obtain Xapian...

Use get_description() instead of get_error_message() to obtain Xapian DatabaseError exception string.

Summary: Resolves Bug 420484

Reviewers: dvratil

Reviewed By: dvratil

Subscribers: dvratil, kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D29164
parent 4a95a644
......@@ -202,7 +202,7 @@ ResultIterator EmailQuery::exec()
qWarning() << "Xapian Database corrupted";
return ResultIterator();
} catch (const Xapian::DatabaseError &e) {
qWarning() << "Failed to open Xapian database:" << QString::fromStdString(e.get_error_string());
qWarning() << "Failed to open Xapian database:" << QString::fromStdString(e.get_description());
return ResultIterator();
} catch (...) {
qWarning() << "Random exception, but we do not want to crash";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment