Skip to content

Commit

Permalink
Merge pull request #2118 from drigz/patch-1
Browse files Browse the repository at this point in the history
Use complete sentence in error
  • Loading branch information
tstirrat15 authored Nov 5, 2024
2 parents 4a3d164 + dd8a214 commit bbc0be2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/development/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func validateSubjects(onrKey blocks.ObjectRelation, fs developmentmembership.Fou
log.Err(err).Msg("could not cast columnPosition to uint32")
}
failures = append(failures, &devinterface.DeveloperError{
Message: fmt.Sprintf("For object and permission/relation `%s`, subject `%s` found but missing from specified",
Message: fmt.Sprintf("For object and permission/relation `%s`, subject `%s` found but not listed in expected subjects",
tuple.StringONR(onr),
tuple.StringONR(foundSubject.Subject()),
),
Expand Down
2 changes: 1 addition & 1 deletion pkg/development/wasm/operations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ assertFalse: garbage
`assertTrue:
- document:somedoc#view@user:jimmy`,
&devinterface.DeveloperError{
Message: "For object and permission/relation `document:somedoc#view`, subject `user:jimmy` found but missing from specified",
Message: "For object and permission/relation `document:somedoc#view`, subject `user:jimmy` found but not listed in expected subjects",
Kind: devinterface.DeveloperError_EXTRA_RELATIONSHIP_FOUND,
Source: devinterface.DeveloperError_VALIDATION_YAML,
Context: "document:somedoc#view",
Expand Down

0 comments on commit bbc0be2

Please sign in to comment.