change error message
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
3f446bda3d
commit
25764c0411
|
@ -170,7 +170,7 @@ module.exports = Self => {
|
|||
fs.writeFile(image, signContent, 'base64', async function(err) {
|
||||
if (err) {
|
||||
await tx.rollback();
|
||||
return 'ERROR';
|
||||
return err.message;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ module.exports = Self => {
|
|||
return 'OK';
|
||||
} catch (err) {
|
||||
await tx.rollback();
|
||||
return 'ERROR';
|
||||
throw err.message;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue