fixes display text in Multiple IDs found with provided prefix
Signed-off-by: Lifubang <lifubang@acmcoder.com> (cherry picked from commit 00eb3480dc4ceb6034f8f7463ff41d2e87fb5dcc) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 1043f40fb561ffbf23fbdde9989abcebd8e48279 Component: engine
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
b412443ed2
commit
50be23f5a1
@ -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
|
||||
|
||||
Reference in New Issue
Block a user