Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
6089a0fa
Commit
6089a0fa
authored
Mar 23, 2017
by
Daniel Martí
Committed by
Sander van Harmelen
Mar 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in user 404 error (#155)
parent
3b0fdbff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
users.go
users.go
+2
-2
No files found.
users.go
View file @
6089a0fa
...
...
@@ -402,7 +402,7 @@ func (s *UsersService) BlockUser(user int, options ...OptionFunc) error {
case
403
:
return
errors
.
New
(
"Cannot block a user that is already blocked by LDAP synchronization"
)
case
404
:
return
errors
.
New
(
"User does not exist
s
"
)
return
errors
.
New
(
"User does not exist"
)
default
:
return
fmt
.
Errorf
(
"Received unexpected result code: %d"
,
resp
.
StatusCode
)
}
...
...
@@ -430,7 +430,7 @@ func (s *UsersService) UnblockUser(user int, options ...OptionFunc) error {
case
403
:
return
errors
.
New
(
"Cannot unblock a user that is blocked by LDAP synchronization"
)
case
404
:
return
errors
.
New
(
"User does not exist
s
"
)
return
errors
.
New
(
"User does not exist"
)
default
:
return
fmt
.
Errorf
(
"Received unexpected result code: %d"
,
resp
.
StatusCode
)
}
...
...
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