Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b6db9817
Commit
b6db9817
authored
Sep 11, 2018
by
Ash McKenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve exception message when not a secondary
parent
3c7e94f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/lib/gitlab/geo/git_push_ssh_proxy.rb
ee/lib/gitlab/geo/git_push_ssh_proxy.rb
+1
-1
ee/spec/lib/gitlab/geo/git_push_ssh_proxy_spec.rb
ee/spec/lib/gitlab/geo/git_push_ssh_proxy_spec.rb
+1
-1
No files found.
ee/lib/gitlab/geo/git_push_ssh_proxy.rb
View file @
b6db9817
...
...
@@ -93,7 +93,7 @@ module Gitlab
end
def
ensure_secondary!
raise
MustBeASecondaryNode
,
'Node is not a secondary'
unless
Gitlab
::
Geo
.
secondary_with_primary?
raise
MustBeASecondaryNode
,
'Node is not a secondary
or there is no primary Geo node
'
unless
Gitlab
::
Geo
.
secondary_with_primary?
end
end
end
...
...
ee/spec/lib/gitlab/geo/git_push_ssh_proxy_spec.rb
View file @
b6db9817
...
...
@@ -49,7 +49,7 @@ describe Gitlab::Geo::GitPushSSHProxy, :geo do
it
'raises an exception'
do
expect
do
subject
.
info_refs
end
.
to
raise_error
(
described_class
::
MustBeASecondaryNode
)
end
.
to
raise_error
(
described_class
::
MustBeASecondaryNode
,
'Node is not a secondary or there is no primary Geo node'
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment