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
3e9d9e15
Commit
3e9d9e15
authored
Feb 10, 2016
by
Sander van Harmelen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #32 from brasilikum/master
make error message more usefuly by revealing type
parents
0f2e9eb4
3790e86b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
gitlab.go
gitlab.go
+1
-2
No files found.
gitlab.go
View file @
3e9d9e15
...
...
@@ -19,7 +19,6 @@ package gitlab
import
(
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
...
...
@@ -348,7 +347,7 @@ func parseID(id interface{}) (string, error) {
case
string
:
return
v
,
nil
default
:
return
""
,
errors
.
New
(
"the ID must be an int or a string"
)
return
""
,
fmt
.
Errorf
(
"the ID must be an int or a string but is %#v"
,
id
)
}
}
...
...
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