MCPcopy
hub / github.com/RUB-NDS/PRET / errmsg

Method errmsg

helper.py:149–157  ·  view source on GitHub ↗
(self, msg, info="")

Source from the content-addressed store, hash-verified

147
148 # show error message
149 def errmsg(self, msg, info=""):
150 info = str(info).strip()
151 if info: # monkeypatch to make python error message less ugly
152 info = item(re.findall('Errno -?\d+\] (.*)', info),
153 '') or info.splitlines()[-1]
154 info = Style.RESET_ALL + Style.DIM + \
155 " (" + info.strip('<>') + ")" + Style.RESET_ALL
156 if msg:
157 print(Back.RED + msg + info)
158
159 # show printer and status
160 def discover(self, xxx_todo_changeme):

Callers 15

showstatusMethod · 0.80
do_unlockMethod · 0.80
onecmdMethod · 0.80
do_openMethod · 0.80
do_timeoutMethod · 0.80
reconnectMethod · 0.80
do_editMethod · 0.80
mirrorMethod · 0.80
convertMethod · 0.80
ps_errMethod · 0.80
on_connectMethod · 0.80
do_lsMethod · 0.80

Calls 1

itemFunction · 0.85

Tested by

no test coverage detected