mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: errors triggered by the -eval and -caplet commands are not fatal and do not make bettercap exit now (fixes #86)
This commit is contained in:
parent
bda3c2c487
commit
bb0bb46915
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
@ -71,14 +71,14 @@ func main() {
|
|||
*/
|
||||
for _, cmd := range session.ParseCommands(*sess.Options.Commands) {
|
||||
if err = sess.Run(cmd); err != nil {
|
||||
log.Fatal("%s", err)
|
||||
log.Error("Error while running '%s': %s", core.Bold(cmd), core.Red(err.Error()))
|
||||
}
|
||||
}
|
||||
|
||||
// Then run the caplet if specified.
|
||||
if *sess.Options.Caplet != "" {
|
||||
if err = sess.RunCaplet(*sess.Options.Caplet); err != nil {
|
||||
log.Fatal("%s", err)
|
||||
log.Error("Error while runnig caplet %s: %s", core.Bold(*sess.Options.Caplet), core.Red(err.Error()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue