mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-04-29 00:10:31 +05:30
Add exception handler to pubsub
This commit is contained in:
parent
990388f0d4
commit
d707beb85a
@ -48,6 +48,10 @@ public class PubSubHelper {
|
||||
.thenAccept(resp -> {
|
||||
if (resp.status() != 202)
|
||||
System.out.println("Failed to subscribe: " + resp.status() + "\n" + new String(resp.body()));
|
||||
})
|
||||
.exceptionally(e -> {
|
||||
ExceptionHandler.handle((Exception) e);
|
||||
return null;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user