From 6ac879d9832dce0e92c1be7d984a846e68307956 Mon Sep 17 00:00:00 2001 From: Danilo Horta Date: Fri, 9 Feb 2024 12:08:32 +0000 Subject: [PATCH] fix: clarify error message when path exists in NewSnapFile --- python-core/deciphon_core/schema.py | 2 +- python-core/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python-core/deciphon_core/schema.py b/python-core/deciphon_core/schema.py index d2a5090..c32ee2f 100644 --- a/python-core/deciphon_core/schema.py +++ b/python-core/deciphon_core/schema.py @@ -135,7 +135,7 @@ def must_not_exist(cls, x: Path): @field_validator("path") def basedir_must_not_exist(cls, x: Path): if basedir(x).exists(): - raise ValueError(f"`{basedir(x)}` must not exist") + raise ValueError(f"`{basedir(x)}` path must not exist") return x @property diff --git a/python-core/pyproject.toml b/python-core/pyproject.toml index bc30b55..b8e46f6 100644 --- a/python-core/pyproject.toml +++ b/python-core/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "deciphon-core" -version = "0.20.7" +version = "0.20.8" description = "Python wrapper around the Deciphon C library" authors = ["Danilo Horta "] license = "MIT"