mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-07 13:15:18 -05:00
edited raise message when validating included file
This commit is contained in:
@@ -124,9 +124,9 @@ eos
|
||||
|
||||
def validate_file(file, safe)
|
||||
if !File.exists?(file)
|
||||
raise IOError.new "Included file '#{file}' not found in '#{INCLUDES_DIR}' directory"
|
||||
raise IOError.new "Included file '#{file}' not found"
|
||||
elsif File.symlink?(file) && safe
|
||||
raise IOError.new "The included file '#{INCLUDES_DIR}/#{file}' should not be a symlink"
|
||||
raise IOError.new "The included file '#{file}' should not be a symlink"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user