Suggest -f when the workdir already exists
authorJannis Harder <me@jix.one>
Mon, 30 May 2022 14:18:37 +0000 (16:18 +0200)
committerJannis Harder <me@jix.one>
Mon, 30 May 2022 14:18:37 +0000 (16:18 +0200)
sbysrc/sby.py

index d13960c7454439add42f0379053692fbe8ba6702..19a962b40f36d0f0a3907d620c37051e055a96a6 100644 (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)