MCPcopy Create free account
hub / github.com/DFHack/dfhack / error

Function error

ci/authors-rst.py:8–15  ·  view source on GitHub ↗
(line, msg, **kwargs)

Source from the content-addressed store, hash-verified

6def main():
7 success = [True]
8 def error(line, msg, **kwargs):
9 info = ''
10 for k in kwargs:
11 info += ' %s %s:' % (k, kwargs[k])
12 print('line %i:%s %s' % (line, info, msg))
13 if os.environ.get('GITHUB_ACTIONS'):
14 print('::error file=docs/about/Authors.rst,line=%i::%s %s' % (line, info.lstrip(), msg))
15 success[0] = False
16 with open('docs/about/Authors.rst', 'rb') as f:
17 lines = list(map(lambda line: line.decode('utf8').replace('\n', ''), f.readlines()))
18

Callers 1

mainFunction · 0.70

Calls 2

printFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected