Skip to content
Permalink
Browse files
Better appearance of error message
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Apr 14, 2018
1 parent 8b748f8 commit 42849291d3a8271409b3656e8f1d00726f305fc6
Showing 1 changed file with 4 additions and 3 deletions.
@@ -67,9 +67,10 @@ def gen_tasks(self):
for task in self.site.generic_page_renderer(lang, post, kw["filters"], context):
if task['name'] == index_paths[lang]:
# Issue 3022
LOGGER.error("Post {0}’s output path ({1}) conflicts with the blog index ({2}). "
"Please change INDEX_PATH or disable index generation.".format(
post, task['name'], index_paths[lang]))
LOGGER.error(
"Post {0!r}: output path ({1}) conflicts with the blog index ({2}). "
"Please change INDEX_PATH or disable index generation.".format(
post.source_path, task['name'], index_paths[lang]))
task['uptodate'] = task['uptodate'] + [config_changed(kw, 'nikola.plugins.task.pages')]
task['basename'] = self.name
task['task_dep'] = ['render_posts']

0 comments on commit 4284929

Please sign in to comment.