We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c110187 commit 08b64d8Copy full SHA for 08b64d8
app/models/repository/git_remote.rb
@@ -165,8 +165,8 @@ def self.add_known_host(host)
165
ssh_known_hosts = ssh_dir + "/known_hosts"
166
begin
167
FileUtils.mkdir_p ssh_dir
168
- rescue e
169
- raise "Unable to create directory #{ssh_dir}: " + "\n\n" + e.to_s
+ rescue Exception => e
+ raise "Unable to create directory #{ssh_dir}: " + e.to_s
170
end
171
172
puts "Adding #{host} to #{ssh_known_hosts}"
0 commit comments