added info
[ikiwiki.git] / IkiWiki / Render.pm
index d7f07c08a1028f7a7353953610daeab7ac236e21..c7849a2dda3c78d123642a233f9fe0347fc9f46d 100644 (file)
@@ -100,7 +100,7 @@ sub preprocess ($$$) { #{{{
                elsif ($preprocessing{$page}++ > 10) {
                        # Avoid loops of preprocessed pages preprocessing
                        # other pages that preprocess them, etc.
-                       return "[[$command preprocessing loop detected]]";
+                       return "[[$command preprocessing loop detected on $page at depth $preprocessing{$page}]]";
                }
                elsif (exists $hooks{preprocess}{$command}) {
                        # Note: preserve order of params, some plugins may