diff options
author | Ayke van Laethem <[email protected]> | 2024-07-21 14:12:55 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2024-07-21 18:23:49 +0200 |
commit | 04d1261f8a48b18a4404c52f858c35c0668316cd (patch) | |
tree | 850babc5c14ae4fb20f1e9d9ff67dd20958d9688 /testdata | |
parent | 3e2230eadb14d0e54db621976d60d654487f891a (diff) | |
download | tinygo-04d1261f8a48b18a4404c52f858c35c0668316cd.tar.gz tinygo-04d1261f8a48b18a4404c52f858c35c0668316cd.zip |
build: add package ID to compiler and optimization error messages
This improves error reporting slightly.
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/errors/compiler.go | 3 | ||||
-rw-r--r-- | testdata/errors/optimizer.go | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/testdata/errors/compiler.go b/testdata/errors/compiler.go index fb0057c93..3332c7c2f 100644 --- a/testdata/errors/compiler.go +++ b/testdata/errors/compiler.go @@ -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 diff --git a/testdata/errors/optimizer.go b/testdata/errors/optimizer.go index 4e0d71b93..c2e0b9c4b 100644 --- a/testdata/errors/optimizer.go +++ b/testdata/errors/optimizer.go @@ -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 |