mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 00:10:45 +02:00
fix error wrapping (#1737)
This commit is contained in:
parent
3524697f6f
commit
6cc720a1b5
2 changed files with 6 additions and 12 deletions
|
@ -21,7 +21,7 @@ func Get(ctx context.Context, client databroker.DataBrokerServiceClient, userID
|
|||
Id: userID,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error getting user from databroker: %w", err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var u User
|
||||
|
@ -41,7 +41,7 @@ func Set(ctx context.Context, client databroker.DataBrokerServiceClient, u *User
|
|||
Data: any,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error setting user in databroker: %w", err)
|
||||
return nil, err
|
||||
}
|
||||
return res.GetRecord(), nil
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ func SetServiceAccount(ctx context.Context, client databroker.DataBrokerServiceC
|
|||
Data: any,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error setting service account in databroker: %w", err)
|
||||
return nil, err
|
||||
}
|
||||
return res.GetRecord(), nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue