diff --git a/Library/Homebrew/search.rb b/Library/Homebrew/search.rb index 61be354d61..8d6e8f0128 100644 --- a/Library/Homebrew/search.rb +++ b/Library/Homebrew/search.rb @@ -42,8 +42,8 @@ module Homebrew filename: query, extension: "rb", ) - rescue GitHub::Error => error - opoo "Error searching on GitHub: #{error}\n" + rescue GitHub::Error => e + opoo "Error searching on GitHub: #{e}\n" return results end