Commit d960b9ae authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge branch 'master' into 'master'

print validation errors when gitlab-rake gitlab:import:repos fails for project

Currently, when gitlab-rake gitlab:import:repos is not able to import a project it justs prints "Failed trying to create project" to the console. There seems to be no way to find out what exactly has failed. Since the check uses validation, it should at least print the validation issues. That might be a bit cryptic, but may be better than leaving the user in the dark completely.

See merge request !147
...@@ -66,6 +66,7 @@ namespace :gitlab do ...@@ -66,6 +66,7 @@ namespace :gitlab do
puts " * Created #{} (#{repo_path})".green puts " * Created #{} (#{repo_path})".green
else else
puts " * Failed trying to create #{} (#{repo_path})".red puts " * Failed trying to create #{} (#{repo_path})".red
puts " Validation Errors: #{project.errors.messages}".red
end end
end end
end end
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