@ -215,6 +215,11 @@ async function resolveEdit (ctx) {
} catch (error) {
await transaction.rollback();
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
console.log('err.name', error.name);
console.log('err.message', error.message);
console.log('err.errors', error.errors);
ctx.status = 400;
ctx.body = {}
}