diff --git a/frontend-js/src/main/js/SecurityError.js b/frontend-js/src/main/js/SecurityError.js index e388bd04d4d2a1c14fb732760fb66abcb2081268..65ce6ae30dd1d6464a380872f3766c94c558ea5c 100644 --- a/frontend-js/src/main/js/SecurityError.js +++ b/frontend-js/src/main/js/SecurityError.js @@ -12,7 +12,7 @@ var logger = require('./logger'); */ function SecurityError(message) { this.message = message; - this.stack = (new Error()).stack; + this.stack = (new Error(message)).stack; } SecurityError.prototype = Object.create(Error.prototype); diff --git a/frontend-js/src/main/js/ValidationError.js b/frontend-js/src/main/js/ValidationError.js index 2a1bec9469d2731e6539d796a754ccd63612ca96..080f957beda64b76c74826ff1653062487239360 100644 --- a/frontend-js/src/main/js/ValidationError.js +++ b/frontend-js/src/main/js/ValidationError.js @@ -12,7 +12,7 @@ var logger = require('./logger'); */ function ValidationError(message) { this.message = message; - this.stack = (new Error()).stack; + this.stack = (new Error(message)).stack; } ValidationError.prototype = Object.create(Error.prototype); diff --git a/frontend-js/src/main/js/gui/GuiMessageError.js b/frontend-js/src/main/js/gui/GuiMessageError.js index e978ff15b3f8e5f84ba408c4c644ba5cdb501036..098c45d37b79cd047f9b5070d4770f9f799366e2 100644 --- a/frontend-js/src/main/js/gui/GuiMessageError.js +++ b/frontend-js/src/main/js/gui/GuiMessageError.js @@ -12,7 +12,7 @@ var logger = require('../logger'); */ function GuiMessageError(message) { this.message = message; - this.stack = (new Error()).stack; + this.stack = (new Error(message)).stack; } GuiMessageError.prototype = Object.create(Error.prototype);