mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 09:18:11 -05:00
include: more helpful error message for symlinks
This commit is contained in:
@@ -75,7 +75,7 @@ eos
|
||||
if !File.exists?(file)
|
||||
return "Included file #{@file} not found in _includes directory"
|
||||
elsif File.symlink?(file)
|
||||
return "Symlink #{@file} must not be included"
|
||||
return "The included file '_includes/#{@file}' should not be a symlink"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user