Skip to content
Snippets Groups Projects
Commit b20868ad authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

Add error message to directory assert

parent 96d57e3c
No related branches found
No related tags found
No related merge requests found
......@@ -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()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment