mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 08:06:59 +00:00
fix(GODT-2457): Include address if GetPublickKeys() error message
This commit is contained in:
@ -468,7 +468,7 @@ func getRecipients(
|
|||||||
prefs, err := parallel.MapContext(ctx, runtime.NumCPU(), addresses, func(ctx context.Context, recipient string) (proton.SendPreferences, error) {
|
prefs, err := parallel.MapContext(ctx, runtime.NumCPU(), addresses, func(ctx context.Context, recipient string) (proton.SendPreferences, error) {
|
||||||
pubKeys, recType, err := client.GetPublicKeys(ctx, recipient)
|
pubKeys, recType, err := client.GetPublicKeys(ctx, recipient)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return proton.SendPreferences{}, fmt.Errorf("failed to get public keys: %w", err)
|
return proton.SendPreferences{}, fmt.Errorf("failed to get public keys: %w (%v)", err, recipient)
|
||||||
}
|
}
|
||||||
|
|
||||||
contactSettings, err := getContactSettings(ctx, client, userKR, recipient)
|
contactSettings, err := getContactSettings(ctx, client, userKR, recipient)
|
||||||
|
|||||||
Reference in New Issue
Block a user