Defect #35421 » 35421.patch
| lib/redmine/configuration.rb | ||
|---|---|---|
|
yaml = YAML::load(ERB.new(File.read(filename)).result)
|
||
|
rescue ArgumentError
|
||
|
abort "Your Redmine configuration file located at #{filename} is not a valid YAML file and could not be loaded."
|
||
|
rescue SyntaxError => e
|
||
|
rescue Psych::SyntaxError => e
|
||
|
abort "A syntax error occurred when parsing your Redmine configuration file located at #{filename} with ERB:\n#{e.message}"
|
||
|
end
|
||
|
conf = {}
|
||