mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
modules/events_stream: fix dropped error
This commit is contained in:
parent
9c3790764a
commit
fb0c2df643
1 changed files with 3 additions and 0 deletions
|
@ -242,6 +242,9 @@ func (mod *EventsStream) Configure() (err error) {
|
|||
mod.output = os.Stdout
|
||||
} else if mod.outputName, err = fs.Expand(output); err == nil {
|
||||
mod.output, err = os.OpenFile(mod.outputName, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue