mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
loader: don't panic when main package is not named 'main'
This can in fact happen in practice, so return an actual error message instead.
This commit is contained in:
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// some comment to move the first line
|
||||
|
||||
package foobar
|
||||
|
||||
// ERROR: # command-line-arguments
|
||||
// ERROR: invalidmain.go:3:9: expected main package to have name "main", not "foobar"
|
||||
Reference in New Issue
Block a user