From 71a2a095b258d6b792a37f7407fa7e255e5d9b44 Mon Sep 17 00:00:00 2001 From: Roger Peppe Date: Wed, 20 Mar 2024 12:55:21 +0000 Subject: [PATCH] cue/load: consistent error message quoting Package paths were printed both quoted and unquoted in the same message. This makes the message consistent. Signed-off-by: Roger Peppe Change-Id: I099b12ba37a992cdd1a1d7375359de863138ae88 Dispatch-Trailer: {"type":"trybot","CL":1185362,"patchset":4,"ref":"refs/changes/62/1185362/4","targetBranch":"master"} --- cue/load/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cue/load/errors.go b/cue/load/errors.go index 4ac9d0919..a1e70eee5 100644 --- a/cue/load/errors.go +++ b/cue/load/errors.go @@ -126,7 +126,7 @@ func (e *MultiplePackageError) InputPositions() []token.Pos { return nil } func (e *MultiplePackageError) Path() []string { return nil } func (e *MultiplePackageError) Msg() (string, []interface{}) { - return "found packages %q (%s) and %s (%s) in %q", []interface{}{ + return "found packages %q (%s) and %q (%s) in %q", []interface{}{ e.Packages[0], e.Files[0], e.Packages[1],