From e08e65182823a7ef54e4c69f054754ad5b424720 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Tue, 22 May 2007 02:28:52 -0300 Subject: [PATCH 1/1] Be more verbose with article path errors. It's easier to debug problems if we echo the full paths when dying because the article is not inside the data path. Signed-off-by: Alberto Bertogli --- blitiri.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blitiri.cgi b/blitiri.cgi index a72ccdd..c43835d 100755 --- a/blitiri.cgi +++ b/blitiri.cgi @@ -627,7 +627,8 @@ def handle_cmd(): art_path = os.path.realpath(sys.argv[2]) if os.path.commonprefix([data_path, art_path]) != data_path: - print "Error: article must be inside data dir" + print "Error: article (%s) must be inside data_path (%s)" % \ + (art_path, data_path) return 1 art_path = art_path[len(data_path):] -- 2.43.0