Skip to content

Commit f60012b

Browse files
committed
console.log error on promise.
1 parent 83341cd commit f60012b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ for await (const event of streamingClient.public.subscribe()) {
2727
visibility: "unlisted",
2828
inReplyToId: event.payload.id,
2929
})
30+
.catch(err => {
31+
console.error(err);
32+
})
3033
.then(res => {
3134
console.log(`Status URL: ${res.url}`);
3235
});

0 commit comments

Comments
 (0)