Improve Error Logging for adding duplicate token
divine-comedian opened this issue · comments
@RamRamez pls take a look at this.
when I set the fields just like a existing token, by tapping on "save " for the first time I got this error
"there was an error updating record, checkout console to see more information"
and by tpping again on "save" button, I got this error
duplicate key value violates unique constraint "IDX_4e29282c925a82d9e50480c2af"
@maryjaf Yes, I fixed it to return the DB error, and for a duplicate record DB returns something like "duplicate key value violates unique constraint"
when I set the fields just like a existing token, by tapping on "save " for the first time I got this error
"there was an error updating record, checkout console to see more information"
but by tapping on "save" for the first time, the previous error is shown
Is this accepted ?
I've checked again and it was ok
This message is shown in duplicate token scenario :
duplicate key value violates unique constraint "IDX_4e29282c925a82d9e50480c2af"