From 50be23f5a192af11b352d9bbefab091cf835ee54 Mon Sep 17 00:00:00 2001 From: Lifubang Date: Mon, 24 Sep 2018 12:17:31 +0800 Subject: [PATCH] fixes display text in Multiple IDs found with provided prefix Signed-off-by: Lifubang (cherry picked from commit 00eb3480dc4ceb6034f8f7463ff41d2e87fb5dcc) Signed-off-by: Sebastiaan van Stijn Upstream-commit: 1043f40fb561ffbf23fbdde9989abcebd8e48279 Component: engine --- components/engine/pkg/truncindex/truncindex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/pkg/truncindex/truncindex.go b/components/engine/pkg/truncindex/truncindex.go index d5c840cf13..b7a11a38c0 100644 --- a/components/engine/pkg/truncindex/truncindex.go +++ b/components/engine/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