Skip to content

Commit

Permalink
fix: rest-client for native image (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras authored Jun 5, 2024
1 parent 4c82fd5 commit 55d7c01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public ErrorStatusUpdateControl<Data> updateErrorStatus(Data slot,
String message = e.getMessage();
if (e.getCause() instanceof WebApplicationException re) {
responseCode = re.getResponse().getStatus();
message = re.getResponse().readEntity(String.class);
}
if (e.getCause() instanceof DataService.MissingKeyConfiguration me) {
message = me.getMessage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.Response;

import io.quarkus.runtime.annotations.RegisterForReflection;

@RegisterForReflection
public interface DataClientApi {

@POST
Expand Down

0 comments on commit 55d7c01

Please sign in to comment.