diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-20 05:03:22 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-20 05:03:22 +0000 |
commit | d960b9aea21821c32d10e6413abdfb7479ade4c6 (patch) | |
tree | f4823021ea46abd4b9ebc81bd65ff729ac5de3ce /lib/tasks | |
parent | e3987bb6b150a255a76310cc1eabda8945e2f0cd (diff) | |
parent | 239d942606bd35d90c4546eb7b0fd530baf00a05 (diff) | |
download | gitlab-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.rake | 1 |
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 |