diff --git a/app/src/main/java/it/integry/integrywmsnative/core/rest/consumers/ArticoloRESTConsumer.java b/app/src/main/java/it/integry/integrywmsnative/core/rest/consumers/ArticoloRESTConsumer.java index 6a0b3e03..b4f819f0 100644 --- a/app/src/main/java/it/integry/integrywmsnative/core/rest/consumers/ArticoloRESTConsumer.java +++ b/app/src/main/java/it/integry/integrywmsnative/core/rest/consumers/ArticoloRESTConsumer.java @@ -105,7 +105,7 @@ public class ArticoloRESTConsumer extends _BaseRESTConsumer { articoloRESTConsumerService .findIfIsKit(mtbAart) - .enqueue(new Callback<>() { + .enqueue(new ManagedErrorCallback<>() { @Override public void onResponse(@NonNull Call> call, @NonNull Response> response) { analyzeAnswer(response, "findIfIsKit", (m) -> { @@ -114,8 +114,8 @@ public class ArticoloRESTConsumer extends _BaseRESTConsumer { } @Override - public void onFailure(@NonNull Call> call, Throwable t) { - onFailed.run(new Exception(t)); + public void onFailure(Call> call, @NonNull Exception e) { + onFailed.run(e); } }); }