Update auth error message

This commit is contained in:
JP Ungaretti 2022-04-28 18:10:14 +00:00 committed by GitHub
parent fce69a5350
commit 6ddd3360d8

View file

@ -85,7 +85,7 @@ func startLiveShareSession(ctx context.Context, codespace *api.Codespace, a *App
session, err := codespaces.ConnectToLiveshare(ctx, a, liveshareLogger, a.apiClient, codespace)
if err != nil {
if authErr := <-authkeys; authErr != nil {
return nil, fmt.Errorf("failed to connect to Live Share: %w", authErr)
return nil, fmt.Errorf("failed to fetch authorization keys: %w", authErr)
}
return nil, fmt.Errorf("failed to connect to Live Share: %w", err)
}