From b20868adb5c146d9235f774e298caa6deaeb22d4 Mon Sep 17 00:00:00 2001
From: Christopher Spinrath <christopher.spinrath@univ-grenoble-alpes.fr>
Date: Tue, 29 Apr 2025 16:11:05 +0200
Subject: [PATCH] Add error message to directory assert

---
 run-exp.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/run-exp.py b/run-exp.py
index 56004ee..c8b9453 100755
--- a/run-exp.py
+++ b/run-exp.py
@@ -41,7 +41,7 @@ class Variable:
 
         if var_type == "file":
             directory = pathlib.Path(value_config["directory"]).expanduser()
-            assert directory.exists() and directory.is_dir()
+            assert directory.exists() and directory.is_dir(), f"No such directory: {directory}"
 
             values = sorted(list(directory.iterdir()))
 
-- 
GitLab