misc fixes
This commit is contained in:
@@ -81,12 +81,15 @@ func ExecFileVM(f string, args []string, debug, trace bool) (err error) {
|
||||
} else {
|
||||
bytecode, err = compile(f, debug)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
|
||||
if debug {
|
||||
log.Printf("Bytecode:\n%s\n", bytecode)
|
||||
}
|
||||
|
||||
mvm := vm.New(f, bytecode)
|
||||
mvm.Debug = debug
|
||||
mvm.Trace = trace
|
||||
|
||||
Reference in New Issue
Block a user