logs dbx constraint violation error (#1712)
This commit is contained in:
parent
5dfe28a8c3
commit
2533aa1ab1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user