diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-09 03:24:09 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-09 03:24:09 -0400 |
| commit | 635c0b7a06d358cefcdddb00b7f3b8562c994689 (patch) | |
| tree | 2ddda84a56ee2e664d39fad3f7e2ec2dfc924c27 | |
| parent | 12e1a91e4fe8de291fbe72c23031f3e79613c0dd (diff) | |
log line and line number when there's an error with the locked order file
| -rw-r--r-- | src/pluginlist.cpp | 4 |
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;
}
|
