Merge branch 'rs-rescue-standarderror' into 'master'
Rescue StandardError, not Exception See merge request !1893
This commit is contained in:
commit
9a4ae85948
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ module MergeRequests
|
|||
}
|
||||
|
||||
repository.merge(current_user, merge_request.source_sha, merge_request.target_branch, options)
|
||||
rescue Exception => e
|
||||
rescue StandardError => e
|
||||
merge_request.update(merge_error: "Something went wrong during merge")
|
||||
Rails.logger.error(e.message)
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue