fix: refs #7187 fix duplicate
gitea/salix/pipeline/pr-test This commit looks good Details

This commit is contained in:
Pablo Natek 2024-05-23 12:23:31 +02:00
parent 2142b78deb
commit 86a6211cd8
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ module.exports = Self => {
return new UserError(`This PDA is already assigned to another user`); return new UserError(`This PDA is already assigned to another user`);
if (err.code === 'ER_SIGNAL_EXCEPTION' && err.sqlMessage === 'You can only have one active PDA') if (err.code === 'ER_SIGNAL_EXCEPTION' && err.sqlMessage === 'You can only have one active PDA')
return new UserError(`You can only have one active PDA`); return new UserError(err.sqlMessage);
return err; return err;
}); });
}; };