mirror of
https://github.com/bettercap/bettercap
synced 2025-07-08 14:01:44 -07:00
Update base_proxy_script.go
This commit is contained in:
parent
cfe5f9f76b
commit
e95623df5b
1 changed files with 3 additions and 3 deletions
|
@ -49,13 +49,13 @@ func LoadProxyScriptSource(path, source string, sess *session.Session) (err erro
|
|||
// define session pointer
|
||||
err = s.VM.Set("env", sess.Env.Data)
|
||||
if err != nil {
|
||||
log.Error("Error while defining environment: %s", err)
|
||||
log.Error( "Error while defining environment: %s", "\nTraceback:\n " + err.(*otto.Error).String() )
|
||||
return
|
||||
}
|
||||
|
||||
err = s.defineBuiltins()
|
||||
if err != nil {
|
||||
log.Error("Error while defining builtin functions: %s", err)
|
||||
log.Error( "Error while defining builtin functions: %s", "\nTraceback:\n " + err.(*otto.Error).String() )
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ func LoadProxyScriptSource(path, source string, sess *session.Session) (err erro
|
|||
if s.hasCallback("onLoad") {
|
||||
_, err = s.VM.Run("onLoad()")
|
||||
if err != nil {
|
||||
log.Error("Error while executing onLoad callback: %s", err)
|
||||
log.Error( "Error while executing onLoad callback: %s", "\nTraceback:\n " + err.(*otto.Error).String() )
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue