MCPcopy Create free account
hub / github.com/SceneFun3D/scenefun3d / print_error

Function print_error

eval/functionality_segmentation/eval_utils/util.py:18–22  ·  view source on GitHub ↗
(message, user_fault=False)

Source from the content-addressed store, hash-verified

16
17# print an error message and quit
18def print_error(message, user_fault=False):
19 sys.stderr.write('ERROR: ' + str(message) + '\n')
20 if user_fault:
21 sys.exit(2)
22 sys.exit(-1)
23
24
25# if string s represents an int

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected