Commit 3e9d9e15 authored by Sander van Harmelen's avatar Sander van Harmelen

Merge pull request #32 from brasilikum/master

make error message more usefuly by revealing type
parents 0f2e9eb4 3790e86b
...@@ -19,7 +19,6 @@ package gitlab ...@@ -19,7 +19,6 @@ package gitlab
import ( import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"errors"
"fmt" "fmt"
"io" "io"
"io/ioutil" "io/ioutil"
...@@ -348,7 +347,7 @@ func parseID(id interface{}) (string, error) { ...@@ -348,7 +347,7 @@ func parseID(id interface{}) (string, error) {
case string: case string:
return v, nil return v, nil
default: 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)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment