Merge pull request #132 from thaJeztah/18.09_backport_idprefix

[18.09 backport] fixes display text in Multiple IDs found with provided prefix
Upstream-commit: a8572d3e8e1e3f738d6e9bc3bf0f137d64bab616
Component: engine
This commit is contained in:
Andrew Hsu
2018-12-13 10:53:54 +00:00
committed by GitHub

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