filter ENOENT from boost::error_code check

Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
Folling 2024-02-12 16:23:01 +01:00 committed by Folling
parent b4004d4050
commit c4b06c09d1
No known key found for this signature in database

View file

@ -69,9 +69,8 @@ IkarusProject * ikarus_project_create(char const * path, char const * name, Ikar
{
boost::system::error_code ec;
bool const exists = fs::exists(fs_path, ec);
IKARUS_FAIL_IF(
ec,
ec && ec != boost::system::errc::no_such_file_or_directory,
nullptr,
fmt::format("unable to check whether path is occupied: {}", ec.message()),
IkarusErrorInfo_Filesystem_AlreadyExists