mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-15 17:31:56 +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);
|
auto it = bookname_to_ifo.find(*p);
|
||||||
if (it != bookname_to_ifo.end()) {
|
if (it != bookname_to_ifo.end()) {
|
||||||
order_list.push_back(it->second);
|
order_list.push_back(it->second);
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, _("Unknown dictionary: %s\n"), *p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -205,6 +207,8 @@ try {
|
|||||||
auto it = bookname_to_ifo.find(line);
|
auto it = bookname_to_ifo.find(line);
|
||||||
if (it != bookname_to_ifo.end()) {
|
if (it != bookname_to_ifo.end()) {
|
||||||
order_list.push_back(it->second);
|
order_list.push_back(it->second);
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, _("Unknown dictionary: %s\n"), line.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fclose(ordering_file);
|
fclose(ordering_file);
|
||||||
|
|||||||
Reference in New Issue
Block a user