1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-04-29 13:49:28 +08:00

MF-1408-Fix error handling for Thing update SQL(#1408) (#1409)

Signed-off-by: Chengyou Tang <tcy277813009@gmail.com>

Co-authored-by: Chengyou Tang <tcy277813009@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
This commit is contained in:
chengyou tang 2021-04-20 20:26:16 +08:00 committed by GitHub
parent 063f73076d
commit e02e9c2387
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ func (tr thingRepository) Update(ctx context.Context, t things.Thing) error {
}
cnt, errdb := res.RowsAffected()
if err != nil {
if errdb != nil {
return errors.Wrap(things.ErrUpdateEntity, errdb)
}