edited raise message when validating included file
This commit is contained in:
parent
f9ffbe0d6a
commit
10ee83d680
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue