Skip to content

Commit

Permalink
TypeError: Error.captureStackTrace is not a function thingdom#211
Browse files Browse the repository at this point in the history
  • Loading branch information
vlamic committed Feb 15, 2018
1 parent b730d83 commit c5fcccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib-new/errors.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class @Error extends Error

constructor: (@message='Unknown error', @neo4j={}) ->
@name = 'neo4j.' + @constructor.name
Error.captureStackTrace @, @constructor
super.captureStackTrace @, @constructor

#
# Accepts the given HTTP client response, and if it represents an error,
Expand Down

0 comments on commit c5fcccd

Please sign in to comment.