From 0a32e462957e49ee974cc68628ee3652c32cca3a Mon Sep 17 00:00:00 2001 From: Unrud Date: Fri, 10 Jun 2016 00:07:25 +0200 Subject: [PATCH] Improve error message --- radicale/storage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/storage.py b/radicale/storage.py index 25ab148..9655115 100644 --- a/radicale/storage.py +++ b/radicale/storage.py @@ -147,7 +147,8 @@ def path_to_filesystem(root, *paths): continue for part in path.split("/"): if not is_safe_filesystem_path_component(part): - raise ValueError("Unsafe path") + raise ValueError( + "Can't tranlate name safely to filesystem: %s" % part) safe_path = os.path.join(safe_path, part) return safe_path