These are chat archives for LearnBoost/mongoose

Apr 2016
Christoph Werner
Apr 19 2016 08:36
when a save errors while working with async/await, such as
try {
  const session = new Session({ userId })
} catch (e) {
will the error be catched or do i have to do something along these lines to catch it
const error = await
if (error) throw new Error(error)