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/api/validations/validators/bulk_imports.rb')
-rw-r--r--lib/api/validations/validators/bulk_imports.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/api/validations/validators/bulk_imports.rb b/lib/api/validations/validators/bulk_imports.rb
index 67dc084cc12..77d76c98e00 100644
--- a/lib/api/validations/validators/bulk_imports.rb
+++ b/lib/api/validations/validators/bulk_imports.rb
@@ -36,7 +36,8 @@ module API
raise Grape::Exceptions::Validation.new(
params: [@scope.full_name(attr_name)],
- message: Gitlab::Regex.bulk_import_destination_namespace_path_regex_message
+ message: "must be a relative path and not include protocol, sub-domain, or domain information. " \
+ "For example, 'destination/full/path' not 'https://example.com/destination/full/path'"
)
end
end
@@ -51,7 +52,7 @@ module API
raise Grape::Exceptions::Validation.new(
params: [@scope.full_name(attr_name)],
message: "must be a relative path and not include protocol, sub-domain, or domain information. " \
- "For example, 'source/full/path' not 'https://example.com/source/full/path'" \
+ "For example, 'source/full/path' not 'https://example.com/source/full/path'"
)
end
end