Merge pull request #37904 from lifubang/idprefix

fixes display text in Multiple IDs found with provided prefix
This commit is contained in:
Brian Goff 2018-09-25 16:55:46 -07:00 committed by GitHub
commit 8e908cab46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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