(err error)
| 1637 | } |
| 1638 | |
| 1639 | func handleCompilerError(err error) { |
| 1640 | if err != nil { |
| 1641 | wd, getwdErr := os.Getwd() |
| 1642 | if getwdErr != nil { |
| 1643 | wd = "" |
| 1644 | } |
| 1645 | diagnostics.CreateDiagnostics(err).WriteTo(os.Stderr, wd) |
| 1646 | os.Exit(1) |
| 1647 | } |
| 1648 | } |
| 1649 | |
| 1650 | // This is a special type for the -X flag to parse the pkgpath.Var=stringVal |
| 1651 | // format. It has to be a special type to allow multiple variables to be defined |
no test coverage detected