This commit is contained in:
parent
2142b78deb
commit
86a6211cd8
|
@ -5,7 +5,7 @@ module.exports = Self => {
|
|||
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')
|
||||
return new UserError(`You can only have one active PDA`);
|
||||
return new UserError(err.sqlMessage);
|
||||
return err;
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue