mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-15 09:21:55 +00:00
Warn on unknown dicts
This commit is contained in:
committed by
Evgeniy Dushistov
parent
abe5e9e72f
commit
6e36e7730c
@@ -190,6 +190,8 @@ try {
|
||||
auto it = bookname_to_ifo.find(*p);
|
||||
if (it != bookname_to_ifo.end()) {
|
||||
order_list.push_back(it->second);
|
||||
} else {
|
||||
fprintf(stderr, _("Unknown dictionary: %s\n"), *p);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -205,6 +207,8 @@ try {
|
||||
auto it = bookname_to_ifo.find(line);
|
||||
if (it != bookname_to_ifo.end()) {
|
||||
order_list.push_back(it->second);
|
||||
} else {
|
||||
fprintf(stderr, _("Unknown dictionary: %s\n"), line.c_str());
|
||||
}
|
||||
}
|
||||
fclose(ordering_file);
|
||||
|
||||
Reference in New Issue
Block a user