Commit 3790e86b authored by Georg Hartmann's avatar Georg Hartmann

use %#v instead of reflection to reveal type

parent 003fe436
...@@ -24,7 +24,6 @@ import ( ...@@ -24,7 +24,6 @@ import (
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"net/url" "net/url"
"reflect"
"strconv" "strconv"
"strings" "strings"
...@@ -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 "", fmt.Errorf("the ID must be an int or a string but is %v", reflect.TypeOf(id)) 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