Commit 8e6af8c5 authored by George Koltsov's avatar George Koltsov

Add better error message MembersMapper#ensure_default_member!

More details in: https://gitlab.com/gitlab-org/gitlab-ce/issues/64377
parent 4f95a8d7
......@@ -50,6 +50,8 @@ module Gitlab
@project.project_members.destroy_all # rubocop: disable DestroyAll
ProjectMember.create!(user: @user, access_level: ProjectMember::MAINTAINER, source_id: @project.id, importing: true)
rescue => e
raise e, ['Error adding importer user to project members', e.message].join('. ')
end
def add_team_member(member, existing_user = nil)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment