mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-06 14:24:08 +00:00
Merge pull request #164 from jix/suggest_f_flag
Suggest -f when the workdir already exists
This commit is contained in:
commit
d7686ca698
|
@ -424,7 +424,7 @@ def run_task(taskname):
|
|||
if reusedir:
|
||||
pass
|
||||
elif os.path.isdir(my_workdir):
|
||||
print(f"ERROR: Directory '{my_workdir}' already exists.")
|
||||
print(f"ERROR: Directory '{my_workdir}' already exists, use -f to overwrite the existing directory.")
|
||||
sys.exit(1)
|
||||
else:
|
||||
os.makedirs(my_workdir)
|
||||
|
|
Loading…
Reference in a new issue