Extract Graph API error details for permissions (#2584)
## Description Add extra information about errors to aid in debugging/reporting to the user ## Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No ## Type of change - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Test - [ ] 💻 CI/Deployment - [x] 🧹 Tech Debt/Cleanup ## Issue(s) * closes #2581 ## Test Plan - [ ] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
9c635eff5c
commit
628d2f3dec
@ -224,6 +224,10 @@ func oneDriveItemPermissionInfo(
|
|||||||
Permissions().
|
Permissions().
|
||||||
Get(ctx, nil)
|
Get(ctx, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
msg := support.ConnectorStackErrorTrace(err)
|
||||||
|
err = clues.Wrap(err, "fetching item permissions: "+msg).
|
||||||
|
With("item_id", *di.GetId())
|
||||||
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user