Browse Source

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>
Lifubang 6 years ago
parent
commit
1043f40fb5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/truncindex/truncindex.go

+ 1 - 1
pkg/truncindex/truncindex.go

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