diff options
author | Valery Sizov <valery@gitlab.com> | 2017-03-01 10:25:35 +0200 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2017-04-11 19:27:15 +0300 |
commit | 3bc114a7c173ecf03fe5348bbf12e270dfe94a2b (patch) | |
tree | cbba979b50c942885bbf18410a662c27720b6bca /lib/gitlab/bitbucket_import | |
parent | 3082a1195cc0939e0aa0b48a9f59dd84152ebdad (diff) | |
download | gitlab-ce-3bc114a7c173ecf03fe5348bbf12e270dfe94a2b.tar.gz |
[BB Importer] Save the error trace and the whole raw documentbb_save_trace
Diffstat (limited to 'lib/gitlab/bitbucket_import')
-rw-r--r-- | lib/gitlab/bitbucket_import/importer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/bitbucket_import/importer.rb b/lib/gitlab/bitbucket_import/importer.rb index f4efa20374a..5a6d9ae99a0 100644 --- a/lib/gitlab/bitbucket_import/importer.rb +++ b/lib/gitlab/bitbucket_import/importer.rb @@ -149,7 +149,7 @@ module Gitlab description += @formatter.author_line(pull_request.author) unless find_user_id(pull_request.author) description += pull_request.description - merge_request = project.merge_requests.create( + merge_request = project.merge_requests.create!( iid: pull_request.iid, title: pull_request.title, description: description, @@ -168,7 +168,7 @@ module Gitlab import_pull_request_comments(pull_request, merge_request) if merge_request.persisted? rescue StandardError => e - errors << { type: :pull_request, iid: pull_request.iid, errors: e.message } + errors << { type: :pull_request, iid: pull_request.iid, errors: e.message, trace: e.backtrace.join("\n"), raw_response: pull_request.raw } end end end |