include: more helpful error message for symlinks
This commit is contained in:
parent
95719fa4ce
commit
506cdc5179
|
@ -75,7 +75,7 @@ eos
|
||||||
if !File.exists?(file)
|
if !File.exists?(file)
|
||||||
return "Included file #{@file} not found in _includes directory"
|
return "Included file #{@file} not found in _includes directory"
|
||||||
elsif File.symlink?(file)
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue