Merge branch 'rs-rescue-standarderror' into 'master'

Rescue StandardError, not Exception

See merge request !1893
This commit is contained in:
Robert Speicher 2015-11-25 01:52:22 +00:00
commit 9a4ae85948

View file

@ -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