From 4202a47b5e54c351c1d363b4b0d365cbc6bab897 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1185362 Reviewed-by: Daniel Martí Unity-Result: CUE porcuepine TryBot-Result: CUEcueckoo --- 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],