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
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1185362
Reviewed-by: Daniel Martí <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
  • Loading branch information
rogpeppe committed Mar 25, 2024
1 parent e675eb7 commit 4202a47
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 4202a47

Please sign in to comment.