Open leohhhn opened 4 months ago
Do you mean that when we try to run a package xxx with a main() inside, the error should be clearer like ~main() should be in main package
~ MsgRun should be executed in main package
? I think this is better than the stack traces are printed out.
Description
MsgRun
is meant to only supportpackage main func main() {}
Gno code.When you try to execute
package mypackage
that contains amain()
function, the below error happens:While in the case of having a
package main
without amain()
function, the following error shows up: