summaryrefslogtreecommitdiff
path: root/git-mirror-gitlab-ee
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-12-16 14:13:37 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-12-16 14:13:37 -0500
commit1714205f993f91f9dae9d2b7d77e51286bf38703 (patch)
tree7a7e664cd8b643e0c65b3038df37b70703d7119e /git-mirror-gitlab-ee
parentfd8b6d5e0763d1c7348f6db9c681c1b2d1308f37 (diff)
Better errors
Diffstat (limited to 'git-mirror-gitlab-ee')
-rwxr-xr-xgit-mirror-gitlab-ee2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-mirror-gitlab-ee b/git-mirror-gitlab-ee
index 80a6d37..aaca9b7 100755
--- a/git-mirror-gitlab-ee
+++ b/git-mirror-gitlab-ee
@@ -104,7 +104,7 @@ class GitLabEE < GitLabCE
req.add_field("PRIVATE-TOKEN", self.config['apikey'])
res = self.connection(req.uri).request(req)
if res.code != "200"
- raise Error.new(res)
+ raise Error.new([res, res.body])
end
user = JSON::parse(res.body)
return user["id"]