We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee70e5b commit 9a70b79Copy full SHA for 9a70b79
2 files changed
lib/github/auth/keys_client.rb
@@ -40,7 +40,7 @@ def github_response
40
raise GithubUserDoesNotExistError if response.code == 404
41
response.parsed_response
42
rescue SocketError, Errno::ECONNREFUSED => e
43
- raise GithubUnavailableError.new e
+ raise GithubUnavailableError, e
44
end
45
46
def http_client
lib/github/auth/keys_file.rb
@@ -46,9 +46,9 @@ def keys_file_content
def with_keys_file(mode, block)
47
File.open(path, mode) { |keys_file| block.call keys_file }
48
rescue Errno::EACCES => e
49
- raise PermissionDeniedError.new e
+ raise PermissionDeniedError, e
50
rescue Errno::ENOENT => e
51
- raise FileDoesNotExistError.new e
+ raise FileDoesNotExistError, e
52
53
54
def keys_file_content_without(keys)
0 commit comments