Skip to content

Commit

Permalink
Fixed text issue in exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasson committed Jan 18, 2024
1 parent 176ceea commit 1e2cb3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ private void validateRec(IndexView index, String entityType, ClassInfo classInfo
DotName superClassName = classInfo.superName();
if (superClassName == null) {
throw new IllegalStateException("Cannot generate web links for the class " + entityType +
" because it is either missing an `id` field, a field with an `@Id` annotation or a field with `@RestLinkId annotation");
" because it is either missing an `id` field, a field with an `@Id` annotation or a field with an `@RestLinkId annotation");
}

// Id field not found but there's still hope
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class RestLinksWithFailureInjectionTest {
assertThat(rootCause).isInstanceOf(IllegalStateException.class)
.hasMessageContaining("Cannot generate web links for the class " +
"io.quarkus.resteasy.reactive.links.deployment.TestRecordNoId because it is " +
"either missing an `id` field, a field with an `@Id` annotation or a field with `@RestLinkId annotation");
"either missing an `id` field, a field with an `@Id` annotation or a field with an `@RestLinkId annotation");
});

@Test
Expand Down

0 comments on commit 1e2cb3f

Please sign in to comment.