summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-08-03 13:00:34 +0200
committerJames Lopez <james@jameslopez.es>2016-08-03 13:00:34 +0200
commitf87eb2502023fb0c17d29aef398058c62736c9ca (patch)
treec569dd3588242d17537a3ffe69d77696dc6b4191 /lib
parente63729d9e70a661fb3fb8cb558716f6a44a52798 (diff)
downloadgitlab-ce-f87eb2502023fb0c17d29aef398058c62736c9ca.tar.gz
Fix Import/Export error checking versionsfix/import-error
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/import_export/version_checker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/import_export/version_checker.rb b/lib/gitlab/import_export/version_checker.rb
index abfc694b879..de3fe6d822e 100644
--- a/lib/gitlab/import_export/version_checker.rb
+++ b/lib/gitlab/import_export/version_checker.rb
@@ -25,7 +25,7 @@ module Gitlab
def verify_version!(version)
if Gem::Version.new(version) > Gem::Version.new(Gitlab::ImportExport.version)
- raise Gitlab::ImportExport::Error("Import version mismatch: Required <= #{Gitlab::ImportExport.version} but was #{version}")
+ raise Gitlab::ImportExport::Error.new("Import version mismatch: Required <= #{Gitlab::ImportExport.version} but was #{version}")
else
true
end