Make local DB-errors more descriptive. This patch will be included into comming 2.1.27.
PR: 198323 Submitted by: Mikhail Teterin