3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-06 14:24:08 +00:00

Suggest -f when the workdir already exists

This commit is contained in:
Jannis Harder 2022-05-30 16:18:37 +02:00
parent de00dc71db
commit 8e87b0f7f4

View file

@ -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)