Skip to content

Commit

Permalink
Ajout d'un logger afin de diagnostiquer l'erreur (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed May 10, 2022
1 parent 1dacec2 commit 863339d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion export/src/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ const errorHandler = (err, res) => {
} else {
error = {}
}
logger.error({ cause: err }, 'Something went wrong!')
res.status(500).send({ error })
}
}
Expand Down Expand Up @@ -297,4 +298,4 @@ module.exports = {
}
},
_createBookExportContext: createBookExportContext
}
}

0 comments on commit 863339d

Please sign in to comment.