summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-20 05:03:22 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-20 05:03:22 +0000
commitd960b9aea21821c32d10e6413abdfb7479ade4c6 (patch)
treef4823021ea46abd4b9ebc81bd65ff729ac5de3ce /lib/tasks
parente3987bb6b150a255a76310cc1eabda8945e2f0cd (diff)
parent239d942606bd35d90c4546eb7b0fd530baf00a05 (diff)
downloadgitlab-ce-d960b9aea21821c32d10e6413abdfb7479ade4c6.tar.gz
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
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/import.rake1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/import.rake b/lib/tasks/gitlab/import.rake
index fef2afd7333..20abb2fa500 100644
--- a/lib/tasks/gitlab/import.rake
+++ b/lib/tasks/gitlab/import.rake
@@ -66,6 +66,7 @@ namespace :gitlab do
puts " * Created #{project.name} (#{repo_path})".green
else
puts " * Failed trying to create #{project.name} (#{repo_path})".red
+ puts " Validation Errors: #{project.errors.messages}".red
end
end
end