mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 04:53:42 +00:00
build: add package ID to compiler and optimization error messages
This improves error reporting slightly.
This commit is contained in:
committed by
Ron Evans
parent
3e2230eadb
commit
04d1261f8a
Vendored
+1
-2
@@ -7,7 +7,6 @@ func foo() {
|
||||
//go:align 7
|
||||
var global int
|
||||
|
||||
// TODO: include package name in the error message
|
||||
|
||||
// ERROR: # command-line-arguments
|
||||
// ERROR: compiler.go:4:6: can only use //go:wasmimport on declarations
|
||||
// ERROR: compiler.go:8:5: global variable alignment must be a positive power of two
|
||||
|
||||
Vendored
+1
@@ -14,5 +14,6 @@ func main() {
|
||||
})
|
||||
}
|
||||
|
||||
// ERROR: # command-line-arguments
|
||||
// ERROR: optimizer.go:9:15: interrupt ID is not a constant
|
||||
// ERROR: optimizer.go:13:15: interrupt ID is not a constant
|
||||
|
||||
Reference in New Issue
Block a user