error handling logging and debug to server console
This commit is contained in:
@@ -81,7 +81,8 @@ export default async function ApiProxy(req, res) {
|
||||
|
||||
return "downloadComplete";
|
||||
})
|
||||
.catch(({ err }) => {
|
||||
.catch((err) => {
|
||||
console.log(consoleLogger(err));
|
||||
res.status(400).json(err);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user