fixes display text in Multiple IDs found with provided prefix

Signed-off-by: Lifubang <lifubang@acmcoder.com>
This commit is contained in:
Lifubang 2018-09-24 12:17:31 +08:00
parent b1116479b2
commit 00eb3480dc

View file

@ -108,7 +108,7 @@ func (idx *TruncIndex) Get(s string) (string, error) {
if id != "" { if id != "" {
// we haven't found the ID if there are two or more IDs // we haven't found the ID if there are two or more IDs
id = "" id = ""
return ErrAmbiguousPrefix{prefix: string(prefix)} return ErrAmbiguousPrefix{prefix: s}
} }
id = string(prefix) id = string(prefix)
return nil return nil