MCPcopy Index your code
hub / github.com/tinygo-org/tinygo / handleCompilerError

Function handleCompilerError

main.go:1639–1648  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

1637}
1638
1639func 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

Callers 2

printBuildOutputFunction · 0.85
mainFunction · 0.85

Calls 2

CreateDiagnosticsFunction · 0.92
WriteToMethod · 0.45

Tested by

no test coverage detected