Skip to content

Commit bf16bc6

Browse files
committed
winreg: Clearer device/controller not found message
Signed-off-by: Paweł Gronowski <me@woland.xyz>
1 parent b22b6bf commit bf16bc6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

winreg/winreg.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ func (r *Registry) GetBluetoothLinkKey(controllerMAC, deviceMAC string) (string,
126126
}
127127

128128
if !controllerFound {
129-
return "", fmt.Errorf("controller not found in registry")
129+
return "", fmt.Errorf("controller (%s) not found in the Windows registry", controllerMAC)
130130
}
131131

132-
return "", fmt.Errorf("device not found in registry")
132+
return "", fmt.Errorf("device (%s) not found in the Windows registry", deviceMAC)
133133
}
134134

135135
func normalizeMAC(mac string) string {

0 commit comments

Comments
 (0)