fix throw error
gitea/salix/pipeline/pr-master This commit looks good
Details
gitea/salix/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
44668b2445
commit
c8e0195510
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue