From b6103b43d536ad7baabe2e20a5fda6c5087f055a Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Sun, 14 Mar 2021 04:49:44 +0530 Subject: [PATCH] stop throwing pls --- src/ws/crud.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ws/crud.js b/src/ws/crud.js index 13fb514..91018c6 100644 --- a/src/ws/crud.js +++ b/src/ws/crud.js @@ -23,7 +23,7 @@ const eventFns = { const ev = new events(data) ev.save((err) => { if (err) - throw err + console.warn(err) }) } catch (e) { console.warn(e) @@ -49,7 +49,7 @@ const rosterFns = { const ev = new rosters(data) ev.save((err) => { if (err) - throw err + console.warn(err) }) } catch (e) { console.warn(e) @@ -75,7 +75,7 @@ const matchFns = { const ev = new matches(data) ev.save((err) => { if (err) - throw err; + console.warn(err) }) } catch (e) { console.warn(e) @@ -101,7 +101,7 @@ const streamFns = { const ev = new streams(data) ev.save((err) => { if (err) - throw err; + console.warn(err) }) } catch (e) { console.warn(e) @@ -127,7 +127,7 @@ const casterFns = { const ev = new casters(data) ev.save((err) => { if (err) - throw err; + console.warn(err) }) } catch (e) { console.warn(e) @@ -153,7 +153,7 @@ const hostFns = { const ev = new hosts(data) ev.save((err) => { if (err) - throw err; + console.warn(err) }) } catch (e) { console.warn(e)