Signed-off-by: Lifubang <lifubang@acmcoder.com> (cherry picked from commit 00eb3480dc4ceb6034f8f7463ff41d2e87fb5dcc) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@@ -108,7 +108,7 @@ func (idx *TruncIndex) Get(s string) (string, error) {
if id != "" {
// we haven't found the ID if there are two or more IDs
id = ""
- return ErrAmbiguousPrefix{prefix: string(prefix)}
+ return ErrAmbiguousPrefix{prefix: s}
}
id = string(prefix)
return nil