More helpful error object when unique constriant violated