mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-10 03:53:40 +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
|
||||
}
|
||||
defer func() {
|
||||
if err = rows.Close(); err != nil {
|
||||
err = errors.ThrowInternal(err, "QUERY-CK9mI", "Errors.Query.CloseRows")
|
||||
if closeErr := rows.Close(); closeErr != nil && err == nil {
|
||||
err = errors.ThrowInternal(closeErr, "QUERY-CK9mI", "Errors.Query.CloseRows")
|
||||
}
|
||||
}()
|
||||
milestones, err := scan(rows)
|
||||
|
Loading…
x
Reference in New Issue
Block a user