mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-10 09:43:41 +00:00
dont overwrite original error
This commit is contained in:
parent
8e8730d017
commit
227c63a89d
@ -85,8 +85,8 @@ func (q *Queries) SearchMilestones(ctx context.Context, instanceIDs []string, qu
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
defer func() {
|
defer func() {
|
||||||
if err = rows.Close(); err != nil {
|
if closeErr := rows.Close(); closeErr != nil && err == nil {
|
||||||
err = errors.ThrowInternal(err, "QUERY-CK9mI", "Errors.Query.CloseRows")
|
err = errors.ThrowInternal(closeErr, "QUERY-CK9mI", "Errors.Query.CloseRows")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
milestones, err := scan(rows)
|
milestones, err := scan(rows)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user