include logger for error when creation is not successful

This commit is contained in:
Ulf Gebhardt 2022-12-22 15:56:37 +01:00
parent 8ebea39870
commit dcd2ec708d
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -642,7 +642,8 @@ export class ContributionResolver {
})
} catch (e) {
await queryRunner.rollbackTransaction()
throw new Error(`Creation was not successful.`)
logger.error('Creation was not successful', e)
throw new Error('Creation was not successful.')
} finally {
await queryRunner.release()
releaseLock()