Rename the exceptions caught in main.cpp

This commit is contained in:
Username404 2021-10-03 21:20:21 +02:00
parent 7c9716c45e
commit a3d6c5d3bc
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ int main(int argc, char* argv[]) {
pair<string, optional<Yerbacon::Exception>> resultingPair;
try {
resultingPair.first = compile(fileName);
} catch (const Yerbacon::Exception& e) {
} catch (const Yerbacon::Exception& error) {
unsigned long lastSlash = 0;
unsigned long position1 = fileName.find_last_of('/');
if (cmp_not_equal(position1, string_view::npos)) {
@ -61,7 +61,7 @@ int main(int argc, char* argv[]) {
#endif
}
resultingPair.first = fileName.substr(lastSlash + 1);
resultingPair.second.emplace(e);
resultingPair.second.emplace(error);
}
return resultingPair;
}));