Merge branch 'develop' of github.com:HabitRPG/habitica into develop

This commit is contained in:
Matteo Pagliazzi 2019-04-02 23:05:16 +02:00
commit d519940931
3 changed files with 5 additions and 4 deletions

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{
"name": "habitica",
"version": "4.91.0",
"version": "4.91.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View file

@ -1,7 +1,7 @@
{
"name": "habitica",
"description": "A habit tracker app which treats your goals like a Role Playing Game.",
"version": "4.91.0",
"version": "4.91.1",
"main": "./website/server/index.js",
"dependencies": {
"@google-cloud/trace-agent": "^3.6.0",

View file

@ -84,8 +84,9 @@ let loggerInterface = {
// Logs unhandled promises errors
// when no catch is attached to a promise a unhandledRejection event will be triggered
process.on('unhandledRejection', function handlePromiseRejection (reason) {
loggerInterface.error('unhandledPromiseRejection', reason);
// reason is the error, p the promise where it originated
process.on('unhandledRejection', function handlePromiseRejection (reason, p) {
loggerInterface.error(reason, 'unhandledPromiseRejection at', p);
});
module.exports = loggerInterface;