Commit 9b2d5e4e authored by David Faure's avatar David Faure
Browse files

Improve assert's error message on SQL error

parent 90fafe74
......@@ -66,7 +66,7 @@ namespace Utils {
qCWarning(KAMD_LOG_RESOURCES) << query.lastQuery();
qCWarning(KAMD_LOG_RESOURCES) << query.lastError();
Q_ASSERT_X(success, "Uils::exec", "Query failed");
Q_ASSERT_X(success, "Uils::exec", qPrintable(QStringLiteral("Query failed:") + query.lastError().text()));
return success;
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