Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 f09b1cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nikola/plugins/command/new_post.py
Expand Up @@ -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)
Expand Down

0 comments on commit f09b1cd

Please sign in to comment.