fix error wrapping (#1737)

This commit is contained in:
Caleb Doxsey 2021-01-05 12:46:14 -07:00 committed by GitHub
parent 3524697f6f
commit 6cc720a1b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 12 deletions

View file

@ -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
}