Hey! How do I know which row is the problem? thank...
# orm-help
m
Hey! How do I know which row is the problem? thanks!
m
It will be easier if you provide a schema.prisma file
r
@manuel 👋 You are passing the same value for a unique field. Check the fields that have
@unique
in your
schema.prisma
against the values that you have in the database and then either remove that row or pass a unique value in your seed file.
m
Hey! @Ryan I got if fixed by now, but wouldn't it make sense to add the line number to the error message? Would make it much quicker to find the field that errors. I had to write a function that shows me the duplicates...
or maybe throw an error with the field. so instead of just
id
maybe add the content
id: cuid
r
We currently just return the SQL error returned by the database. As for line number, do you mean the line in the code at which this error occured?