(err)
| 299 | }; |
| 300 | |
| 301 | function 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 | |
| 318 | Agent.prototype._reply = function(request, err, message) { |
| 319 | var agent = this; |
no outgoing calls
no test coverage detected
searching dependent graphs…