print error message when unable to check for project path existence
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
38b0a86fd7
commit
b96792e8c4
1 changed files with 6 additions and 1 deletions
|
|
@ -70,7 +70,12 @@ 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, nullptr, "unable to check whether path is occupied", IkarusErrorInfo_Filesystem_AlreadyExists);
|
||||
IKARUS_FAIL_IF(
|
||||
ec,
|
||||
nullptr,
|
||||
fmt::format("unable to check whether path is occupied: {}", ec.message()),
|
||||
IkarusErrorInfo_Filesystem_AlreadyExists
|
||||
);
|
||||
IKARUS_FAIL_IF(exists, nullptr, "path is already occupied", IkarusErrorInfo_Filesystem_AlreadyExists);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue