Attempting to deleting things in such a way that would violate a foreign key constraint, now gives you an informative error, not a plain 500.