mirror of https://github.com/tinygo-org/tinygo.git
Browse Source
Add location information (whenever possible) to failed imports. This helps in debugging where an incorrect import came from. For example, show the following error message: /home/ayke/src/github.com/tinygo-org/tinygo/src/machine/machine.go:5:8: cannot find package "foobar" in any of: /usr/local/go/src/foobar (from $GOROOT) /home/ayke/src/foobar (from $GOPATH) Instead of the following: error: cannot find package "foobar" in any of: /usr/local/go/src/foobar (from $GOROOT) /home/ayke/src/foobar (from $GOPATH)pull/833/head
Ayke van Laethem
5 years ago
committed by
Ron Evans
2 changed files with 20 additions and 5 deletions
Loading…
Reference in new issue