Navigation Menu

Skip to content

Commit

Permalink
Handle error within handler_forward plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
daijiro committed Jun 25, 2013
1 parent 5b14dcf commit e747095
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/droonga/plugin/handler_forward.rb
Expand Up @@ -64,6 +64,12 @@ def refresh_config
@config = JSON.parse(file.read)
end
@config_mtime = mtime
rescue => exception
if $log
$log.error "error while refreshing config", exception: exception
$log.error_backtrace
end
@config = nil
end
end
end

0 comments on commit e747095

Please sign in to comment.