Jelajahi Sumber

Merge pull request #132 from thaJeztah/18.09_backport_idprefix

[18.09 backport] fixes display text in Multiple IDs found with provided prefix
Andrew Hsu 6 tahun lalu
induk
melakukan
a8572d3e8e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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