Close connection on erros
This commit is contained in:
parent
caa641c550
commit
9fd381640e
1 changed files with 1 additions and 1 deletions
|
@ -424,7 +424,7 @@ module.exports = (options, repo, params, id, publicUrl, dataResolver) => {
|
|||
pool.release(renderer);
|
||||
if (err) {
|
||||
console.error(err);
|
||||
return;
|
||||
return res.status(500).send(err);
|
||||
}
|
||||
|
||||
const image = sharp(data, {
|
||||
|
|
Loading…
Reference in a new issue