|
@ -215,6 +215,11 @@ async function resolveEdit (ctx) { |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
await transaction.rollback(); |
|
|
await transaction.rollback(); |
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); |
|
|
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.status = 400; |
|
|
ctx.body = {} |
|
|
ctx.body = {} |
|
|
} |
|
|
} |
|
|