summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-09-09 03:24:09 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-09-09 03:24:09 -0400
commit635c0b7a06d358cefcdddb00b7f3b8562c994689 (patch)
tree2ddda84a56ee2e664d39fad3f7e2ec2dfc924c27
parent12e1a91e4fe8de291fbe72c23031f3e79613c0dd (diff)
log line and line number when there's an error with the locked order file
-rw-r--r--src/pluginlist.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pluginlist.cpp b/src/pluginlist.cpp
index 33423225..c6c61da3 100644
--- a/src/pluginlist.cpp
+++ b/src/pluginlist.cpp
@@ -437,7 +437,10 @@ void PluginList::readLockedOrderFrom(const QString &fileName)
}
file.open(QIODevice::ReadOnly);
+
+ int lineNumber = 0;
while (!file.atEnd()) {
+ ++lineNumber;
QByteArray line = file.readLine();
if ((line.size() > 0) && (line.at(0) != '#')) {
QList<QByteArray> fields = line.split('|');
@@ -463,6 +466,7 @@ void PluginList::readLockedOrderFrom(const QString &fileName)
}
}
} else {
+ log::error("locked order file: invalid line #{} '{}'", lineNumber, QString::fromUtf8(line));
reportError(tr("The file containing locked plugin indices is broken"));
break;
}