Check for err in repo connect (#2537)
## Description Add a missing err check to repo connect. Follow up to https://github.com/alcionai/corso/pull/2502 . ## 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 <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [x] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Test - [ ] 💻 CI/Deployment - [ ] 🧹 Tech Debt/Cleanup ## Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * #<issue> ## Test Plan <!-- How will this be tested prior to merging.--> - [x] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
55825afdbd
commit
2a66097e15
@ -222,6 +222,9 @@ func ConnectAndSendConnectEvent(ctx context.Context,
|
||||
opts control.Options,
|
||||
) (Repository, error) {
|
||||
repo, err := Connect(ctx, acct, s, opts)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
r := repo.(*repository)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user