Skip to content

Commit

Permalink
feat(stackTrace): add network error
Browse files Browse the repository at this point in the history
  • Loading branch information
peteyycz committed Jan 5, 2016
1 parent 0e3e553 commit 8a284ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/providers/httpTransaction/wraps/http.request.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ function wrapRequest (original, collector, config) {
url: requestParams.path,
time: microtime.now(),
headers: requestParams.headers,
err: err
err: {
type: 'network',
message: err.message,
raw: err
}
}

collector.emit(Collector.CLIENT_RECV, collectorDataBag)
Expand Down

0 comments on commit 8a284ff

Please sign in to comment.