Skip to content

Commit

Permalink
fix: update messages
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-steinfeld committed May 10, 2024
1 parent 0518d25 commit 0e2891d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ public static <T extends Message> void validateFieldPresenceOrThrow(T source, in
throw Status.INTERNAL
.withDescription(
String.format(
"Improper use of 'validateOptionalFieldAssignedOrThrow' field without presence: %s",
"Improper use of 'validateFieldPresenceOrThrow' field without detectable presence: %s",
descriptor.getFullName()))
.asRuntimeException();
}
if (!source.hasField(descriptor)) {
throw Status.INVALID_ARGUMENT
.withDescription(
String.format(
"Expected field to be assigned:%n %s",
"Expected field %s to be assigned:%n %s",
descriptor.getFullName(), printMessage(source)))
.asRuntimeException();
}
Expand Down

0 comments on commit 0e2891d

Please sign in to comment.