mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 14:03:17 -07:00
fix: reporting module name when it's already running or already stopped
This commit is contained in:
parent
fbcaf2989f
commit
40ec724ca6
20 changed files with 30 additions and 24 deletions
|
@ -146,7 +146,7 @@ func (mod *Sniffer) Configure() error {
|
|||
var err error
|
||||
|
||||
if mod.Running() {
|
||||
return session.ErrAlreadyStarted
|
||||
return session.ErrAlreadyStarted(mod.Name())
|
||||
} else if err, mod.Ctx = mod.GetContext(); err != nil {
|
||||
if mod.Ctx != nil {
|
||||
mod.Ctx.Close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue