Skip to content

Commit

Permalink
Merge pull request #1 from Leeingnyo/fix-example-bug
Browse files Browse the repository at this point in the history
Fix example bug
  • Loading branch information
wolf4ood authored Dec 13, 2018
2 parents 35ce694 + b1aa083 commit 1fe9880
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions orientjs-chat-example-async-await/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ const listenForMessage = pool => {
{ params: msg }
)
.one();
} catch (ex) {
console.log(ex);
} catch (err) {
console.log(err);
}
await session.close();
});
});
};
Expand All @@ -95,7 +96,7 @@ const boostrap = ({ client, pool }) => {
await session.close();
});
next();
} catch (ex) {
} catch (err) {
res.status(500).send(err);
}
});
Expand Down

0 comments on commit 1fe9880

Please sign in to comment.