brouznouf / fivem-mysql-async

MySql Async Library for FiveM
MIT License
111 stars 106 forks source link

How can I catch an error? #178

Open Almeidowski opened 3 years ago

Almeidowski commented 3 years ago

Hi! I got the following error: ER_DUP_ENTRY. I would like to know how can I catch it with lua? For example: if ER_DUP_ENTRY then

iWanheda commented 3 years ago

That's not even script related, it's an error in your MySQL syntax, you cannot make 2 entries with the same PK (Primary Key)

https://google.it/