diff --git a/lib/redmine/configuration.rb b/lib/redmine/configuration.rb index d2d27f775..e132eec9c 100644 --- a/lib/redmine/configuration.rb +++ b/lib/redmine/configuration.rb @@ -95,7 +95,7 @@ module Redmine 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 = {}