change error message
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Pau 2022-11-16 13:43:48 +01:00
parent 3f446bda3d
commit 25764c0411
1 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ module.exports = Self => {
fs.writeFile(image, signContent, 'base64', async function(err) { fs.writeFile(image, signContent, 'base64', async function(err) {
if (err) { if (err) {
await tx.rollback(); await tx.rollback();
return 'ERROR'; return err.message;
} }
}); });
} }
@ -189,7 +189,7 @@ module.exports = Self => {
return 'OK'; return 'OK';
} catch (err) { } catch (err) {
await tx.rollback(); await tx.rollback();
return 'ERROR'; throw err.message;
} }
}; };
}; };