Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: display a warning when file exists #82

Closed
wants to merge 1 commit into from

Conversation

jekyllbot
Copy link
Contributor

PR automatically created for @DirtyF.

fix: display a warning when file exists

@@ -25,7 +25,7 @@ def file_path
private

def validate_should_write!
raise ArgumentError, "A #{file.resource_type} already exists at #{file_path}" if File.exist?(file_path) && !force
return Jekyll.logger.warn "A #{file.resource_type} already exists at #{file_path}".yellow if File.exist?(file_path) && !force
Copy link
Member

@DirtyF DirtyF Oct 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't abort, files get overwritten.

@DirtyF
Copy link
Member

DirtyF commented Nov 1, 2018

closed in favor of #83

@DirtyF DirtyF closed this Nov 1, 2018
@DirtyF DirtyF deleted the pull/color-warning branch November 1, 2018 11:44
@jekyll jekyll locked and limited conversation to collaborators Nov 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants