mirror of
https://github.com/bettercap/bettercap
synced 2025-07-12 08:07:00 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
037d5cea22
commit
810d24d80e
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ func (mod *HIDRecon) setInjectionMode(address string) error {
|
|||
}
|
||||
|
||||
func errNoDevice(addr string) error {
|
||||
return fmt.Errorf("HID device %s not found, make sure that hid.recon is on and that device has been discovered", addr)
|
||||
return fmt.Errorf("HID device %s not found, make sure that hid.recon is on and that this device has been discovered", addr)
|
||||
}
|
||||
|
||||
func errNoType(addr string) error {
|
||||
|
|
|
@ -140,7 +140,7 @@ func (mod *HIDRecon) Configure() error {
|
|||
|
||||
if mod.useLNA {
|
||||
if err = mod.dongle.EnableLNA(); err != nil {
|
||||
return err
|
||||
return fmt.Errorf("make sure your device supports LNA, otherwise set hid.lna to false and retry: %s", err)
|
||||
}
|
||||
mod.Debug("LNA enabled")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue