Skip to content

Commit

Permalink
fixed exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Lewis committed Apr 27, 2010
1 parent 32d159f commit e3c0185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memcached_stats/memcached_stats.rb
Expand Up @@ -19,7 +19,7 @@ def build_report
connection = MemCache.new "#{option(:host)}:#{option(:port)}"
begin
stats = connection.stats["#{option(:host)}:#{option(:port)}"]
rescue Errno::ECONNREFUSED, MemCache::MemCacheError => error
rescue Errno::ECONNREFUSED, MemCache::MemCacheError => e
return error( "Could not connect to Memcached.",
"Make certain you've specified the correct host and port" )
end
Expand Down

0 comments on commit e3c0185

Please sign in to comment.