MCPcopy Create free account
hub / github.com/ampproject/amphtml / Die

Function Die

validator/js/webui/build.py:21–28  ·  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

19
20
21def Die(msg):
22 """Prints error and exits with status 1.
23
24 Args:
25 msg: The error message to emit
26 """
27 print(msg, file=sys.stderr)
28 sys.exit(1)
29
30
31def GetNodeJsCmd():

Callers 2

GetNodeJsCmdFunction · 0.70
CheckPrereqsFunction · 0.70

Calls 1

exitMethod · 0.80

Tested by

no test coverage detected