From 2c5dde2ddafb233c817dfb8c87c4fba5a31d9a30 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 8 Jul 2021 15:59:28 +0100 Subject: [PATCH] missing this --- backend/handlers/error.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/handlers/error.js b/backend/handlers/error.js index db27ca359..5d039cff5 100644 --- a/backend/handlers/error.js +++ b/backend/handlers/error.js @@ -3,12 +3,12 @@ const uuid = require("uuid"); class MonkeyError { constructor(status, message, stack = null) { this.status = status ?? 500; - let errorID = uuid.v4(); + this.errorID = uuid.v4(); if (this.status === 500) { this.message = process.env.MODE === "dev" ? String(stack) - : "Internal Server Error " + errorID; + : "Internal Server Error " + this.errorID; } else { this.message = process.env.MODE === "dev"