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 <[email protected]>
Change-Id: I099b12ba37a992cdd1a1d7375359de863138ae88
Dispatch-Trailer: {"type":"trybot","CL":1185362,"patchset":4,"ref":"refs/changes/62/1185362/4","targetBranch":"master"}
  • Loading branch information
rogpeppe authored and cueckoo committed Mar 21, 2024
1 parent 5cff249 commit 71a2a09
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 71a2a09

Please sign in to comment.