Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFrancisco Javier López <fjlopez@gitlab.com>2019-04-24 18:34:06 +0300
committerStan Hu <stanhu@gmail.com>2019-04-24 18:34:06 +0300
commit7d85448b58643a8127f211dcf23b1bb3641cb005 (patch)
tree912391d253a130e43e23bf90f4797737b346ca42 /lib
parent7734b834fb7aebc1c10f7e8ec20d74a208bd5a8b (diff)
Fix bug when project export to remote url fails
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/import_export/after_export_strategies/web_upload_strategy.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/gitlab/import_export/after_export_strategies/web_upload_strategy.rb b/lib/gitlab/import_export/after_export_strategies/web_upload_strategy.rb
index fcf6a25ab00..acb7f225b17 100644
--- a/lib/gitlab/import_export/after_export_strategies/web_upload_strategy.rb
+++ b/lib/gitlab/import_export/after_export_strategies/web_upload_strategy.rb
@@ -30,10 +30,7 @@ module Gitlab
def handle_response_error(response)
unless response.success?
- error_code = response.dig('Error', 'Code') || response.code
- error_message = response.dig('Error', 'Message') || response.message
-
- raise StrategyError.new("Error uploading the project. Code #{error_code}: #{error_message}")
+ raise StrategyError.new("Error uploading the project. Code #{response.code}: #{response.message}")
end
end