Open osfameron opened 10 years ago
Good point about the error message.
I quite like that it completely fails rather than skipping the bad row however. It encourages you to return the whole thing to the NHS for them to fix it. Then you load the whole file in one go, rather than returning later just to load a certain row and having to remember which row it was supposed to load.
e.g. gives a stacktrace about database constraints.
Should probably give a more readable one-line error, specifying WHICH user is a dupe (or even warn about the duplication and continue).