Skip to content

Commit 1a4f395

Browse files
committed
Handle preprocess image error
1 parent aaf034b commit 1a4f395

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,10 @@ app.post('/uploadimage', function (req, res) {
493493
logger.error(err);
494494
return res.status(500).end('upload image error');
495495
}
496+
497+
}).catch((err) => {
498+
logger.error(err);
499+
return res.status(500).end('process image error');
496500
});
497501
}
498502
});

0 commit comments

Comments
 (0)