diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-03-15 13:03:43 +0300 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-03-15 13:03:43 +0300 |
commit | 30b36c92c386e93b432166fb6f9dd973882a6d82 (patch) | |
tree | 3a1ad27bee57f67a2c16bc44aaad38cbae51bf3e /app/services/git_push_service.rb | |
parent | 0beae70efaafc361cf15c13231bdc5ed6de8569f (diff) |
Use an exception to pass messages
Diffstat (limited to 'app/services/git_push_service.rb')
-rw-r--r-- | app/services/git_push_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/git_push_service.rb b/app/services/git_push_service.rb index e50cbdfb602..4313de0ccab 100644 --- a/app/services/git_push_service.rb +++ b/app/services/git_push_service.rb @@ -79,6 +79,7 @@ class GitPushService < BaseService housekeeping = Projects::HousekeepingService.new(@project) housekeeping.increment! housekeeping.execute if housekeeping.needed? + rescue Projects::HousekeepingService::LeaseTaken end def process_default_branch |