fix empty message on shell error

This commit is contained in:
James Lopez 2016-05-31 10:53:50 +02:00 committed by Robert Speicher
parent b2b2b2f9de
commit b2b3e0e6ee

View file

@ -39,7 +39,7 @@ module Projects
begin
gitlab_shell.import_repository(project.path_with_namespace, project.import_url)
rescue Gitlab::Shell::Error => e
raise Error, e.message
raise Error, "Error importing repository #{project.import_url} into #{project.path_with_namespace} - #{e.message}"
end
end