From a9ece1756d081088084bd4e6a11767861312b496 Mon Sep 17 00:00:00 2001 From: Julien Vanier Date: Wed, 18 Apr 2018 09:59:35 -0400 Subject: [PATCH] Fix `data is not defined` --- lib/IntercomError.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IntercomError.js b/lib/IntercomError.js index 6e6ab76..dab154c 100644 --- a/lib/IntercomError.js +++ b/lib/IntercomError.js @@ -30,7 +30,7 @@ function IntercomError(message, errors) { AbstractError.apply(this, arguments); this.name = 'IntercomError'; this.message = message; - this.errors = data.errors; + this.errors = errors; } /**