build: add package ID to compiler and optimization error messages

This improves error reporting slightly.
This commit is contained in:
Ayke van Laethem
2024-07-21 14:12:55 +02:00
committed by Ron Evans
parent 3e2230eadb
commit 04d1261f8a
5 changed files with 21 additions and 18 deletions
+1 -2
View File
@@ -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