diff options
author | Valery Sizov <valery@gitlab.com> | 2016-12-07 16:54:32 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2016-12-07 16:54:32 +0300 |
commit | 98c0eb0f75692b1281adda9bfb75e1fcc12cec6d (patch) | |
tree | 3281121be29fa533c5e1d5fd5e8fc8874fb5b34d /lib/gitlab/bitbucket_import | |
parent | b12d6541835024eb74384551b84bf0e74747d0c3 (diff) |
BitBucket refactoring. Iteration 3
Diffstat (limited to 'lib/gitlab/bitbucket_import')
-rw-r--r-- | lib/gitlab/bitbucket_import/importer.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/bitbucket_import/importer.rb b/lib/gitlab/bitbucket_import/importer.rb index 825d43e6589..fba382e6fea 100644 --- a/lib/gitlab/bitbucket_import/importer.rb +++ b/lib/gitlab/bitbucket_import/importer.rb @@ -50,7 +50,7 @@ module Gitlab if issue.persisted? client.issue_comments(repo, issue.iid).each do |comment| - # The note can be blank for issue service messages like "Chenged title: ..." + # The note can be blank for issue service messages like "Changed title: ..." # We would like to import those comments as well but there is no any # specific parameter that would allow to process them, it's just an empty comment. # To prevent our importer from just crashing or from creating useless empty comments @@ -70,8 +70,8 @@ module Gitlab end end end - rescue ActiveRecord::RecordInvalid - nil + rescue ActiveRecord::RecordInvalid => e + Rails.logger.error("Bitbucket importer ERROR in #{project.path_with_namespace}: Couldn't import record properly #{e.message}") end def import_pull_requests |