mirror of
https://github.com/moby/moby.git
synced 2026-07-11 00:58:22 +00:00
fixes display text in Multiple IDs found with provided prefix
Signed-off-by: Lifubang <lifubang@acmcoder.com>
This commit is contained in:
@@ -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