Project

General

Profile

Defect #8510 ยป jruby-darcs.diff

Toshi MARUYAMA, 2011-06-03 11:42

View differences:

app/models/repository.rb
278 278
    ret = ""
279 279
    begin
280 280
      ret = self.scm_adapter_class.client_command if self.scm_adapter_class
281
    rescue Redmine::Scm::Adapters::CommandFailed => e
281
    rescue Exception => e
282 282
      logger.error "scm: error during get command: #{e.message}"
283 283
    end
284 284
    ret
......
288 288
    ret = ""
289 289
    begin
290 290
      ret = self.scm_adapter_class.client_version_string if self.scm_adapter_class
291
    rescue Redmine::Scm::Adapters::CommandFailed => e
291
    rescue Exception => e
292 292
      logger.error "scm: error during get version string: #{e.message}"
293 293
    end
294 294
    ret
......
298 298
    ret = false
299 299
    begin
300 300
      ret = self.scm_adapter_class.client_available if self.scm_adapter_class
301
    rescue Redmine::Scm::Adapters::CommandFailed => e
301
    rescue Exception => e
302 302
      logger.error "scm: error during get scm available: #{e.message}"
303 303
    end
304 304
    ret
    (1-1/1)