MCPcopy
hub / github.com/ganeshrvel/openmtp / checkError

Function checkError

app/utils/processBufferOutput.js:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 const checkError = errorTplKey => {
59 return (
60 stderrStringified
61 .toLowerCase()
62 .indexOf(errorTpl[errorTplKey].toLowerCase()) !== -1 ||
63 errorStringified
64 .toLowerCase()
65 .indexOf(errorTpl[errorTplKey].toLowerCase()) !== -1
66 );
67 };
68
69 const noMtpError = checkError('noMtp');
70 log.doLog(

Callers 2

processMtpBufferFunction · 0.85
processLocalBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected