Catch std::exception in iptcprint.

This commit is contained in:
Kevin Backhouse 2022-02-19 13:57:03 +00:00
parent 0b17cc31f7
commit 571c84fe57
No known key found for this signature in database
GPG Key ID: 9DD01852EE40366E

View File

@ -68,5 +68,9 @@ try {
}
catch (Exiv2::AnyError& e) {
std::cout << "Caught Exiv2 exception '" << e << "'\n";
return -1;
return 1;
}
catch (const std::exception& e) {
std::cout << "Caught exception: '" << e.what() << "'\n";
return 1;
}