logs dbx constraint violation error (#1712)

This commit is contained in:
Natalie Villasana 2019-04-08 18:03:48 -04:00 committed by GitHub
parent 5dfe28a8c3
commit 2533aa1ab1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ func init() {
case ErrorCode_NoRows: case ErrorCode_NoRows:
return e.Err return e.Err
case ErrorCode_ConstraintViolation: case ErrorCode_ConstraintViolation:
return errs.New("violates constraint") return errs.New("violates constraint: %s: %s", e.Constraint, e.Error())
} }
return c.Wrap(e) return c.Wrap(e)