Handle exceptions properly; fixes #13
This commit is contained in:
parent
c1101873f6
commit
08b64d80d9
@ -165,8 +165,8 @@ class Repository::GitRemote < Repository::Git
|
||||
ssh_known_hosts = ssh_dir + "/known_hosts"
|
||||
begin
|
||||
FileUtils.mkdir_p ssh_dir
|
||||
rescue e
|
||||
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
|
||||
end
|
||||
|
||||
puts "Adding #{host} to #{ssh_known_hosts}"
|
||||
|
Loading…
Reference in New Issue
Block a user