Fix database storage bug in ErrorLogModel

This commit is contained in:
Bart De Vries 2021-05-15 20:17:45 +02:00
parent 0c13326ab1
commit eab5d08acd

View File

@ -66,7 +66,7 @@ void ErrorLogModel::monitorErrorMessages(const QString &url, const QString &id,
// Also add error to database
QSqlQuery query;
query.prepare(QStringLiteral("INSERT INTO Errors VALUES (:url, :id, :code, :string, :date);"));
query.prepare(QStringLiteral("INSERT INTO Errors VALUES (:url, :id, :code, :message, :date);"));
query.bindValue(QStringLiteral(":url"), error->url);
query.bindValue(QStringLiteral(":id"), error->id);
query.bindValue(QStringLiteral(":code"), error->code);