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

Method fileerror

pjl.py:101–108  ·  view source on GitHub ↗
(self, str_recv)

Source from the content-addressed store, hash-verified

99
100 # parse PJL file errors
101 def fileerror(self, str_recv):
102 self.error = None
103 for code in re.findall("FILEERROR\s*=\s*(\d+)", str_recv):
104 # file errors are 300xx codes
105 code = "3" + code.zfill(4)
106 for error in codebook().get_errors(code):
107 self.chitchat("PJL Error: " + error)
108 self.error = code
109
110 # --------------------------------------------------------------------
111 # check if remote volume exists

Callers 1

pjl_errMethod · 0.95

Calls 3

codebookClass · 0.90
get_errorsMethod · 0.80
chitchatMethod · 0.45

Tested by

no test coverage detected