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 (
"io/ioutil"
"net/http"
"net/url"
"reflect"
"strconv"
"strings"
......@@ -348,7 +347,7 @@ func parseID(id interface{}) (string, error) {
case string:
return v, nil
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