Skip to content

Commit

Permalink
Merge pull request #42285 from geoand/#42187
Browse files Browse the repository at this point in the history
Improve error message when security annotations could not be discovered
  • Loading branch information
gastaldi authored Aug 2, 2024
2 parents e034bba + a48637c commit b8eec68
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 @@ -258,7 +258,7 @@ public List<ServerRestHandler> handlers(Phase phase, ResourceClass resourceClass
throw new IllegalStateException(
"""
Security annotation placed on resource method '%s#%s' wasn't detected by Quarkus during the build time.
Please report issue in Quarkus project.
Please consult https://quarkus.io/guides/cdi-reference#bean_discovery on how to make the module containing the code discoverable by Quarkus.
"""
.formatted(desc.invokedMethodDesc().getClassName(),
desc.invokedMethodDesc().getMethodName()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public List<ServerRestHandler> handlers(Phase phase, ResourceClass resourceClass
throw new IllegalStateException(
"""
Security annotation placed on resource method '%s#%s' wasn't detected by Quarkus during the build time.
Please report issue in Quarkus project.
Please consult https://quarkus.io/guides/cdi-reference#bean_discovery on how to make the module containing the code discoverable by Quarkus.
"""
.formatted(desc.invokedMethodDesc().getClassName(),
desc.invokedMethodDesc().getMethodName()));
Expand Down

0 comments on commit b8eec68

Please sign in to comment.