Better error message for failed constraint index.

If a constraint index fails, the error message provided to users that interact with the broken constraint now

contains the original cause of the index failing.