From b30712a74af3d0978ca5e24424db535808a246b6 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Sun, 14 Mar 2021 04:47:55 +0530 Subject: [PATCH] change throw to console warning --- src/ws/crud.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ws/crud.js b/src/ws/crud.js index c26aa87..13fb514 100644 --- a/src/ws/crud.js +++ b/src/ws/crud.js @@ -23,10 +23,10 @@ const eventFns = { const ev = new events(data) ev.save((err) => { if (err) - throw err; + throw err }) } catch (e) { - throw e; + console.warn(e) } } } @@ -52,7 +52,7 @@ const rosterFns = { throw err }) } catch (e) { - throw e + console.warn(e) } } } @@ -78,7 +78,7 @@ const matchFns = { throw err; }) } catch (e) { - throw e; + console.warn(e) } } } @@ -104,7 +104,7 @@ const streamFns = { throw err; }) } catch (e) { - throw e; + console.warn(e) } } } @@ -130,7 +130,7 @@ const casterFns = { throw err; }) } catch (e) { - throw e; + console.warn(e) } } } @@ -156,7 +156,7 @@ const hostFns = { throw err; }) } catch (e) { - throw e; + console.warn(e) } } }