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
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bulk_imports/error.rb')
-rw-r--r--lib/bulk_imports/error.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/bulk_imports/error.rb b/lib/bulk_imports/error.rb
index 38f26028276..4699d5eab5f 100644
--- a/lib/bulk_imports/error.rb
+++ b/lib/bulk_imports/error.rb
@@ -3,7 +3,8 @@
module BulkImports
class Error < StandardError
def self.unsupported_gitlab_version
- self.new("Unsupported GitLab Version. Minimum Supported Gitlab Version #{BulkImport::MIN_MAJOR_VERSION}.")
+ self.new("Unsupported GitLab version. Source instance must run GitLab version #{BulkImport::MIN_MAJOR_VERSION} " \
+ "or later.")
end
def self.scope_validation_failure
@@ -14,5 +15,9 @@ module BulkImports
def self.invalid_url
self.new("Import aborted as it was not possible to connect to the provided GitLab instance URL.")
end
+
+ def self.destination_full_path_validation_failure(full_path)
+ self.new("Import aborted as '#{full_path}' already exists. Change the destination and try again.")
+ end
end
end