forgot to re-enable exception checking in conf loader

git-svn-id: https://rubycas-server.googlecode.com/svn/trunk@53 fffcb96a-a727-0410-ad3e-7b35c796b8d7
This commit is contained in:
matt.zukowski 2007-03-08 23:36:46 +00:00
Родитель a34fc9fbea
Коммит f78fbfa62b
1 изменённых файлов: 7 добавлений и 8 удалений

Просмотреть файл

@ -1,6 +1,5 @@
# load configuration
#begin
begin
conf_file = etc_conf = "/etc/rubycas-server/config.yml"
unless File.exists? conf_file
# can use local config.yml file in case we're running non-gem installation
@ -49,12 +48,12 @@
require 'casserver/'+auth_rb
$AUTH = $CONF[:authenticator][:class].constantize.new
end
#rescue
# raise "Your RubyCAS-Server configuration may be invalid."+
# " Please double-check check your config.yml file."+
# " Make sure that you are using spaces instead of tabs for your indentation!!" +
# "\n\nUNDERLYING EXCEPTION:\n#{$!}"
#end
rescue
raise "Your RubyCAS-Server configuration may be invalid."+
" Please double-check check your config.yml file."+
" Make sure that you are using spaces instead of tabs for your indentation!!" +
"\n\nUNDERLYING EXCEPTION:\n#{$!}"
end
module CASServer
module Conf