Convert Exiv2::ErrorCode into an enum class
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ int main(int argc, char* const argv[])
|
||||
if (xmpPacket.empty()) {
|
||||
std::string error(argv[1]);
|
||||
error += ": No XMP packet found in the file";
|
||||
throw Exiv2::Error(Exiv2::kerErrorMessage, error);
|
||||
throw Exiv2::Error(Exiv2::ErrorCode::kerErrorMessage, error);
|
||||
}
|
||||
std::cout << xmpPacket << "\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user