1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-05 16:43:25 +00:00

Adds a custom message for when a syntax error occurs (#16878).

git-svn-id: http://svn.redmine.org/redmine/trunk@13151 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-05-24 10:53:31 +00:00
parent 169711bf46
commit e5e291b377

View File

@ -86,6 +86,9 @@ module Redmine
rescue ArgumentError
$stderr.puts "Your Redmine configuration file located at #{filename} is not a valid YAML file and could not be loaded."
exit 1
rescue SyntaxError => e
$stderr.puts "A syntax error occurred when parsing your Redmine configuration file located at #{filename} with ERB:\n#{e.message}"
exit 1
end
conf = {}
if yaml.is_a?(Hash)