File tree 1 file changed +6
-6
lines changed
lib/redmine_git_hosting/config
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -80,24 +80,24 @@ def gitolite_ssh_public_key_dest_path
80
80
81
81
def install_private_key
82
82
RedmineGitHosting ::Commands . sudo_install_file ( gitolite_ssh_private_key_content , gitolite_ssh_private_key_dest_path , '600' )
83
- rescue
84
- logger . error ( ' Failed to install Redmine Git Hosting mirroring SSH private key !' )
83
+ rescue RedmineGitHosting :: Error :: GitoliteCommandException => e
84
+ logger . error ( " Failed to install Redmine Git Hosting mirroring SSH private key : #{ e . output } " )
85
85
false
86
86
end
87
87
88
88
89
89
def install_public_key
90
90
RedmineGitHosting ::Commands . sudo_install_file ( gitolite_ssh_public_key_content , gitolite_ssh_public_key_dest_path , '644' )
91
- rescue
92
- logger . error ( ' Failed to install Redmine Git Hosting mirroring SSH public key !' )
91
+ rescue RedmineGitHosting :: Error :: GitoliteCommandException => e
92
+ logger . error ( " Failed to install Redmine Git Hosting mirroring SSH public key : #{ e . output } " )
93
93
false
94
94
end
95
95
96
96
97
97
def install_mirroring_script
98
98
RedmineGitHosting ::Commands . sudo_install_file ( mirroring_script_content , gitolite_mirroring_script , '700' )
99
- rescue
100
- logger . error ( ' Failed to install Redmine Git Hosting mirroring script !' )
99
+ rescue RedmineGitHosting :: Error :: GitoliteCommandException => e
100
+ logger . error ( " Failed to install Redmine Git Hosting mirroring script : #{ e . output } " )
101
101
false
102
102
end
103
103
You can’t perform that action at this time.
0 commit comments