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

Method _logError

lib/code-caller.js:412–418  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

410 }
411
412 _logError(msg) {
413 debug(`enter _logError(), state: ${String(this.state)}, uuid: ${this.uuid}`);
414 const errData = this._errorData();
415 logger.error(msg, errData);
416 debug(`exit _logError(), state: ${String(this.state)}, uuid: ${this.uuid}`);
417 return false;
418 }
419
420 _checkState(allowedStates) {
421 if (allowedStates && !allowedStates.includes(this.state)) {

Callers 5

_handleStderrDataMethod · 0.95
_handleStdoutDataMethod · 0.95
_handleChildExitMethod · 0.95
_handleChildErrorMethod · 0.95
_checkStateMethod · 0.95

Calls 2

_errorDataMethod · 0.95
debugFunction · 0.85

Tested by

no test coverage detected