mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Add exception handler to pubsub
This commit is contained in:
parent
990388f0d4
commit
d707beb85a
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue