From c5fcccd4a5cf837daa1ef53bb37321b0fbb4caa6 Mon Sep 17 00:00:00 2001 From: Vladislav Mickevic Date: Thu, 15 Feb 2018 14:36:57 +0200 Subject: [PATCH] TypeError: Error.captureStackTrace is not a function thingdom/node-neo4j#211 --- lib-new/errors.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib-new/errors.coffee b/lib-new/errors.coffee index 681c78b..15ed5f4 100644 --- a/lib-new/errors.coffee +++ b/lib-new/errors.coffee @@ -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,