Skip to content

Commit

Permalink
MF-1408-Fix error handling for Thing update SQL(absmach#1408)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chengyou Tang committed Apr 19, 2021
1 parent 84978c0 commit d801eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion things/postgres/things.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit d801eb3

Please sign in to comment.