Skip to content

Commit

Permalink
設定ファイル読み込みでのミスを修正
Browse files Browse the repository at this point in the history
refs #31

読み込んだ設定を返せていなかった
  • Loading branch information
ochaochaocha3 committed Mar 29, 2015
1 parent a610ad6 commit 2f577a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/rgrb/exec/irc_bot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ def load_config(config_id, root_path, logger)
end

yaml_path = "#{root_path}/config/#{config_id}.yaml"
RGRB::Config.load_yaml_file(yaml_path)

config = RGRB::Config.load_yaml_file(yaml_path)
logger.warn("設定 #{config_id} を読み込みました")

config
rescue => e
logger.fatal('設定ファイルの読み込みに失敗しました')
logger.fatal(e)
Expand Down

0 comments on commit 2f577a9

Please sign in to comment.