include: more helpful error message for symlinks

This commit is contained in:
maul.esel 2013-08-18 17:08:42 +02:00
parent 95719fa4ce
commit 506cdc5179
1 changed files with 1 additions and 1 deletions

View File

@ -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