fix throw error
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Pablo Natek 2024-02-23 14:44:59 +01:00
parent 44668b2445
commit c8e0195510
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ module.exports = Self => {
if (tx) await tx.commit();
} catch (error) {
if (tx) await tx.rollback();
throw new UserError(`Cant update `);
throw error;
}
return file;
};