Replaced all hardcoded error codes with ker... constants
This commit is contained in:
@@ -20,7 +20,7 @@ try {
|
||||
FileIo file(path);
|
||||
// Open the file in read mode
|
||||
if (file.open("rb") != 0) {
|
||||
throw Error(10, path, "rb", strError());
|
||||
throw Error(kerFileOpenFailed, path, "rb", strError());
|
||||
}
|
||||
// Map it to memory
|
||||
const Exiv2::byte* pData = file.mmap();
|
||||
|
||||
Reference in New Issue
Block a user