MCPcopy
hub / github.com/ampproject/amphtml / Die

Function Die

validator/build.py:16–23  ·  view source on GitHub ↗

Prints error and exits with status 1. Args: msg: The error message to emit

(msg)

Source from the content-addressed store, hash-verified

14
15
16def Die(msg):
17 """Prints error and exits with status 1.
18
19 Args:
20 msg: The error message to emit
21 """
22 print(msg, file=sys.stderr)
23 sys.exit(1)
24
25
26def EnsureNodeJsIsInstalled():

Callers 4

EnsureNodeJsIsInstalledFunction · 0.70
CheckPrereqsFunction · 0.70
RunSmokeTestFunction · 0.70
RunIndexTestFunction · 0.70

Calls 1

exitMethod · 0.80

Tested by

no test coverage detected