From 0474fce07ba82138ab330b6920444ee25857e27a Mon Sep 17 00:00:00 2001 From: Folling Date: Mon, 12 Feb 2024 16:23:01 +0100 Subject: [PATCH] filter ENOENT from boost::error_code check Signed-off-by: Folling --- src/ikarus/persistence/project.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ikarus/persistence/project.cpp b/src/ikarus/persistence/project.cpp index b2e92f8..87ebef5 100644 --- a/src/ikarus/persistence/project.cpp +++ b/src/ikarus/persistence/project.cpp @@ -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