diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-22 15:14:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-22 15:14:53 -0400 |
| commit | 5044a6cd2c7d75e2505e5abc6645fc990f343dc9 (patch) | |
| tree | e06b037a1d44876a895fd5ecc47071477e52101b /src/pluginlist.cpp | |
| parent | f69559fe0bd40629e66ecde6e362b73595d9bd2e (diff) | |
| parent | c1a5f2ef73f4435c08876155d4551c045d5e7594 (diff) | |
Merge pull request #839 from isanae/even-more-logging
Even more logging
Diffstat (limited to 'src/pluginlist.cpp')
| -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;
}
|
