From 60021a70dcd7cb390014608ee4398c45bde501b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Wed, 28 Mar 2018 10:56:06 +0200 Subject: [PATCH] extends Error --- app/postgresql/error_handler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/postgresql/error_handler.js b/app/postgresql/error_handler.js index 6bdd3c1f..1ab425eb 100644 --- a/app/postgresql/error_handler.js +++ b/app/postgresql/error_handler.js @@ -1,7 +1,8 @@ var pgErrorCodes = require('./error_codes'); -class ErrorHandler { +class ErrorHandler extends Error { constructor(err) { + super(); this.err = err; if (this.isTimeoutError()) {