Rename the exceptions caught in main.cpp
This commit is contained in:
parent
7c9716c45e
commit
a3d6c5d3bc
|
@ -47,7 +47,7 @@ int main(int argc, char* argv[]) {
|
||||||
pair<string, optional<Yerbacon::Exception>> resultingPair;
|
pair<string, optional<Yerbacon::Exception>> resultingPair;
|
||||||
try {
|
try {
|
||||||
resultingPair.first = compile(fileName);
|
resultingPair.first = compile(fileName);
|
||||||
} catch (const Yerbacon::Exception& e) {
|
} catch (const Yerbacon::Exception& error) {
|
||||||
unsigned long lastSlash = 0;
|
unsigned long lastSlash = 0;
|
||||||
unsigned long position1 = fileName.find_last_of('/');
|
unsigned long position1 = fileName.find_last_of('/');
|
||||||
if (cmp_not_equal(position1, string_view::npos)) {
|
if (cmp_not_equal(position1, string_view::npos)) {
|
||||||
|
@ -61,7 +61,7 @@ int main(int argc, char* argv[]) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
resultingPair.first = fileName.substr(lastSlash + 1);
|
resultingPair.first = fileName.substr(lastSlash + 1);
|
||||||
resultingPair.second.emplace(e);
|
resultingPair.second.emplace(error);
|
||||||
}
|
}
|
||||||
return resultingPair;
|
return resultingPair;
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue