Skip to content
Permalink
Browse files

Merge pull request #2339 from getnikola/existing-post-location

Show post's location even when it exists.
  • Loading branch information
ralsina committed May 9, 2016
2 parents 0069bc7 + 436f9c1 commit f09b1cd4a92877cf88de5e649b507ec8580fe3e7
Showing with 3 additions and 0 deletions.
  1. +3 −0 nikola/plugins/command/new_post.py
@@ -343,6 +343,9 @@ def _execute(self, options, args):
signal('existing_' + content_type).send(self, **event)

LOGGER.error("The title already exists!")
LOGGER.info("Existing {0}'s text is at: {1}".format(content_type, txt_path))
if not onefile:
LOGGER.info("Existing {0}'s metadata is at: {1}".format(content_type, meta_path))
return 8

d_name = os.path.dirname(txt_path)

0 comments on commit f09b1cd

Please sign in to comment.