MCPcopy Index your code
hub / github.com/PrairieLearn/PrairieLearn / _handleStderrData

Method _handleStderrData

lib/code-caller.js:264–275  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

262 }
263
264 _handleStderrData(data) {
265 debug(`enter _handleStderrData(), state: ${String(this.state)}, uuid: ${this.uuid}`);
266 debug(`_handleStderrData(), data: ${data}`);
267 this._checkState([IN_CALL, EXITING, WAITING]);
268 if (this.state == IN_CALL) {
269 this.outputStderr += data;
270 this.outputBoth += data;
271 } else {
272 this._logError(`Unexpected STDERR data: ${data}`);
273 }
274 debug(`exit _handleStderrData(), state: ${String(this.state)}, uuid: ${this.uuid}`);
275 }
276
277 _handleStdoutData(data) {
278 debug(`enter _handleStdoutData(), state: ${String(this.state)}, uuid: ${this.uuid}`);

Callers

nothing calls this directly

Calls 3

_checkStateMethod · 0.95
_logErrorMethod · 0.95
debugFunction · 0.85

Tested by

no test coverage detected