Skip to content

Commit

Permalink
console.log error on promise.
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMasterK committed Oct 27, 2023
1 parent 83341cd commit f60012b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ for await (const event of streamingClient.public.subscribe()) {
visibility: "unlisted",
inReplyToId: event.payload.id,
})
.catch(err => {
console.error(err);
})
.then(res => {
console.log(`Status URL: ${res.url}`);
});
Expand Down

0 comments on commit f60012b

Please sign in to comment.