Skip to content

Commit

Permalink
cue/load: consistent error message quoting
Browse files Browse the repository at this point in the history
Package paths were printed both quoted and unquoted in the same message.
This makes the message consistent.

Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I099b12ba37a992cdd1a1d7375359de863138ae88
  • Loading branch information
rogpeppe committed Mar 20, 2024
1 parent 189d364 commit f204294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cue/load/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit f204294

Please sign in to comment.