MCPcopy Index your code
hub / github.com/share/sharedb / getReplyErrorObject

Function getReplyErrorObject

lib/agent.js:301–316  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

299};
300
301function getReplyErrorObject(err) {
302 if (typeof err === 'string') {
303 return {
304 code: ERROR_CODE.ERR_UNKNOWN_ERROR,
305 message: err
306 };
307 } else {
308 if (err.stack) {
309 logger.info(err.stack);
310 }
311 return {
312 code: err.code,
313 message: err.message
314 };
315 }
316}
317
318Agent.prototype._reply = function(request, err, message) {
319 var agent = this;

Callers 2

agent.jsFile · 0.85
getMapResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…