compiler: provide filename to Compile()
This commit is contained in:
parent
d8db85ef55
commit
057e1c6e3c
9 changed files with 19 additions and 18 deletions
|
@ -311,7 +311,7 @@ func handleLoadGo(c *ishell.Context) {
|
|||
c.Err(err)
|
||||
return
|
||||
}
|
||||
b, err := compiler.Compile(bytes.NewReader(fb))
|
||||
b, err := compiler.Compile(c.Args[0], bytes.NewReader(fb))
|
||||
if err != nil {
|
||||
c.Err(err)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue