More verbose info on store scan error

This commit is contained in:
Denis Arh
2021-03-12 13:12:07 +01:00
parent 9290bff442
commit d44e3474e8
26 changed files with 88 additions and 25 deletions
+1 -1
View File
@@ -566,7 +566,7 @@ func (s Store) internal{{ export $.Types.Singular }}RowScanner({{ template "extr
}
if err != nil {
return nil, errors.Store("could not scan {{ unexport $.Types.Singular }} db row").Wrap(err)
return nil, errors.Store("could not scan {{ unexport $.Types.Singular }} db row: %s", err).Wrap(err)
} else {
return res, nil
}