Commit 3955daa4 authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

prepare.py: return custom error code when working directory already exist so...

prepare.py: return custom error code when working directory already exist so that we can retrieve it easily
parent 7e748043
......@@ -169,7 +169,7 @@ def run(target, debug, latest, list_cmake_variables, force_build, additional_arg
if force_build is False:
print("Working directory {} already exists. Please remove it (option -C or -c) before re-executing CMake "
"to avoid conflicts between executions.".format(target.cmake_dir))
return 1
return 51
else:
os.makedirs(target.abs_cmake_dir)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment