##// END OF EJS Templates
scm: catch all exceptions at adapter shellout() to fork scm command (#8510, #6713, #4725, #5404)....
Toshi MARUYAMA -
r6110:34f838685bf7
parent child
Show More
@@ -224,7 +224,11 module Redmine
224 io.close_write
224 io.close_write
225 block.call(io) if block_given?
225 block.call(io) if block_given?
226 end
226 end
227 rescue Errno::ENOENT => e
227 ## If scm command does not exist,
228 ## Linux JRuby 1.6.2 (ruby-1.8.7-p330) raises java.io.IOException
229 ## in production environment.
230 # rescue Errno::ENOENT => e
231 rescue Exception => e
228 msg = strip_credential(e.message)
232 msg = strip_credential(e.message)
229 # The command failed, log it and re-raise
233 # The command failed, log it and re-raise
230 logmsg = "SCM command failed, "
234 logmsg = "SCM command failed, "
General Comments 0
You need to be logged in to leave comments. Login now