From 810d24d80e71bc40a65c8306f6280e509d6280cd Mon Sep 17 00:00:00 2001 From: evilsocket Date: Wed, 20 Feb 2019 18:05:27 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/hid/hid_inject.go | 2 +- modules/hid/hid_recon.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/hid/hid_inject.go b/modules/hid/hid_inject.go index 62ec5c63..737a5b59 100644 --- a/modules/hid/hid_inject.go +++ b/modules/hid/hid_inject.go @@ -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 { diff --git a/modules/hid/hid_recon.go b/modules/hid/hid_recon.go index 8cc04f92..a40dbb4d 100644 --- a/modules/hid/hid_recon.go +++ b/modules/hid/hid_recon.go @@ -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") }