From 466a094928b36d09f09286a3dc059f02a879d355 Mon Sep 17 00:00:00 2001
From: Joey Hess <joey@kodama.kitenet.net>
Date: Sat, 17 Nov 2007 14:06:11 -0500
Subject: * Better error message when a setup file has a syntax error.  
 Closes: #451666

---
 IkiWiki/Setup.pm | 2 +-
 debian/changelog | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/IkiWiki/Setup.pm b/IkiWiki/Setup.pm
index 2d6e1d1cf..235e93eaf 100644
--- a/IkiWiki/Setup.pm
+++ b/IkiWiki/Setup.pm
@@ -22,7 +22,7 @@ sub setup () { # {{{
 	close IN;
 
 	eval $code;
-	error($@) if $@;
+	error("$setup: ".$@) if $@;
 
 	exit;
 } #}}}
diff --git a/debian/changelog b/debian/changelog
index 56c7e6484..37e6f7d26 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,8 +13,10 @@ ikiwiki (2.13) UNRELEASED; urgency=low
     to let ikiwiki run setgid to that group.
   * ikiwiki-mass-rebuild: Run build with the user in all their groups.
   * Correct markdown in example index page in setup. Closes: #451469
+  * Better error message when a setup file has a syntax error.
+    Closes: #451666
 
- -- Joey Hess <joeyh@debian.org>  Fri, 16 Nov 2007 12:52:40 -0500
+ -- Joey Hess <joeyh@debian.org>  Sat, 17 Nov 2007 14:05:38 -0500
 
 ikiwiki (2.12) unstable; urgency=low
 
-- 
cgit v1.2.3