commit c2e24bc1fc39c2cb6da4d0fb28ffe6966bf9543f parent e7aab43720634e9ec0b92ed88818d955a58068d5 Author: Daniel <23189912+danyisill@users.noreply.github.com> Date: Sat, 21 Mar 2020 18:26:01 +0300 Handle promise rejection Diffstat:
M | lib/commands/yn.ts | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/commands/yn.ts b/lib/commands/yn.ts @@ -1,4 +1,4 @@ export default home_scope => { - const { message } = home_scope; - Promise.all(['✅', '❎'].map(message.react)).then(console.log) + const { message } = home_scope + Promise.all(['✅', '❎'].map(message.react)).then(console.log).catch(console.log) };