improve error message if flake_dir does not exists

This commit is contained in:
Jörg Thalheim 2023-10-31 13:03:59 +01:00
parent 61abc96581
commit cb87ccbfc4

View File

@ -77,7 +77,7 @@ def clan_flakes_dir() -> Path:
def specific_flake_dir(flake_name: FlakeName) -> Path:
flake_dir = clan_flakes_dir() / flake_name
if not flake_dir.exists():
raise ClanError(f"Flake '{flake_name}' does not exist")
raise ClanError(f"Flake '{flake_name}' does not exist in {flake_dir}")
return flake_dir