diff --git a/src/image.cpp b/src/image.cpp index 589ba434..3504956a 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -831,7 +831,7 @@ BasicIo::UniquePtr ImageFactory::createIo(const std::string& path, [[maybe_unuse return std::make_unique(path); #else - return nullptr; + throw Error(ErrorCode::kerFileOpenFailed, path, "", "file access disabled"); #endif } // ImageFactory::createIo