filter ENOENT from boost::error_code check
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
b4004d4050
commit
c4b06c09d1
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue