edited raise message when validating included file

This commit is contained in:
Jens Nazarenus 2013-12-19 18:23:21 +01:00
parent f9ffbe0d6a
commit 10ee83d680
1 changed files with 2 additions and 2 deletions

View File

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