浏览代码

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 年之前
父节点
当前提交
1043f40fb5
共有 1 个文件被更改,包括 1 次插入1 次删除
  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