summaryrefslogtreecommitdiff
path: root/lib/gitlab/github_gists_import/importer/gist_importer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/github_gists_import/importer/gist_importer.rb')
-rw-r--r--lib/gitlab/github_gists_import/importer/gist_importer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/github_gists_import/importer/gist_importer.rb b/lib/gitlab/github_gists_import/importer/gist_importer.rb
index a5e87d3cf7d..4018f425e7c 100644
--- a/lib/gitlab/github_gists_import/importer/gist_importer.rb
+++ b/lib/gitlab/github_gists_import/importer/gist_importer.rb
@@ -7,6 +7,7 @@ module Gitlab
attr_reader :gist, :user
FileCountLimitError = Class.new(StandardError)
+ FILE_COUNT_LIMIT_MESSAGE = 'Snippet maximum file count exceeded'
# gist - An instance of `Gitlab::GithubGistsImport::Representation::Gist`.
def initialize(gist, user_id)
@@ -76,7 +77,7 @@ module Gitlab
def fail_and_track(snippet)
remove_snippet_and_repository(snippet)
- ServiceResponse.error(message: 'Snippet max file count exceeded').track_exception(as: FileCountLimitError)
+ ServiceResponse.error(message: FILE_COUNT_LIMIT_MESSAGE).track_exception(as: FileCountLimitError)
end
end
end