We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5392048 commit 59b3803Copy full SHA for 59b3803
src/main.cpp
@@ -42,6 +42,7 @@ QHash<QByteArray, QByteArray> loadIdentityMapFile(const QString &fileName)
42
return result;
43
}
44
45
+ bool found_author;
46
while (!file.atEnd()) {
47
QByteArray line = file.readLine();
48
int comment_pos = line.indexOf('#');
@@ -68,9 +69,13 @@ QHash<QByteArray, QByteArray> loadIdentityMapFile(const QString &fileName)
68
69
line.truncate(leftspace);
70
71
result.insert(line, realname);
72
+ found_author = true;
73
};
74
file.close();
75
76
+ if(!found_author) {
77
+ fprintf(stderr, "No authors found in identity-map file. Check supported formats.\n");
78
+ }
79
80
81
0 commit comments