MCPcopy Create free account
hub / github.com/djhworld/simple-computer / exitWithError

Function exitWithError

cmd/assembler/main.go:19–24  ·  view source on GitHub ↗
(message string, err error, exitCode int)

Source from the content-addressed store, hash-verified

17var render = flag.Bool("s", false, "output assembly as string")
18
19func exitWithError(message string, err error, exitCode int) {
20 fmt.Fprintln(os.Stderr, message, err)
21 fmt.Fprint(os.Stderr, "\n")
22 flag.Usage()
23 os.Exit(exitCode)
24}
25
26func main() {
27 flag.Parse()

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected