summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen <benmaggacis+gitlab@gmail.com>2019-04-10 12:48:53 +0000
committerBen <benmaggacis+gitlab@gmail.com>2019-04-10 12:48:53 +0000
commit6b546551b6eab35072685b2eba103bb1fe2a9e0d (patch)
treee57436e8003ed2ef56a608877f47f9033556b252
parentaf9b46f3bea10b7897f519bb5b680075c79b5b80 (diff)
downloadgitlab-ce-6b546551b6eab35072685b2eba103bb1fe2a9e0d.tar.gz
Add missing provider_unauthroized method to import_github.rb
-rw-r--r--lib/api/import_github.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/import_github.rb b/lib/api/import_github.rb
index bb4e536cf57..342efe3949b 100644
--- a/lib/api/import_github.rb
+++ b/lib/api/import_github.rb
@@ -20,6 +20,10 @@ module API
def provider
:github
end
+
+ def provider_unauthorized
+ error!("Access denied to your #{Gitlab::ImportSources.title(provider.to_s)} account.", 500)
+ end
end
desc 'Import a GitHub project' do