diff --git a/binarycpython/utils/grid.py b/binarycpython/utils/grid.py
index 3bb91d280fc4f94c4b8aa3c2f2507d59366aab5e..d478af808bcc976cfc3005b30d5efd46f09cfe99 100644
--- a/binarycpython/utils/grid.py
+++ b/binarycpython/utils/grid.py
@@ -5015,7 +5015,7 @@ eccentricity3=0
                 pathlib.Path(self.slurmpath(dir)).mkdir(exist_ok=False,
                                                         parents=True)
             except:
-                print("Tried to make the directory {dir} but it already exists. When you launch a set of binary_c jobs on Slurm, you need to set your slurm_dir to be a fresh directory with no contents.")
+                print("Tried to make the directory {dir} but it already exists. When you launch a set of binary_c jobs on Slurm, you need to set your slurm_dir to be a fresh directory with no contents.".format(dir=dir))
                 sys.exit()
 
         # check that they have been made and exist: we need this