From b585e022c7b69e75f7e3d8f5f112f70f7cbc08c4 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Fri, 18 Jan 2019 17:25:41 +0100 Subject: [PATCH] validation problem shouldn't be reported as an error --- frontend-js/src/main/js/GuiConnector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend-js/src/main/js/GuiConnector.js b/frontend-js/src/main/js/GuiConnector.js index c7cd3c1ec4..a35557f568 100644 --- a/frontend-js/src/main/js/GuiConnector.js +++ b/frontend-js/src/main/js/GuiConnector.js @@ -402,7 +402,7 @@ GuiConnector.prototype.alert = function (error, redirectIfSecurityError) { * @returns {Object} */ GuiConnector.prototype.getErrorMessageForError = function (error) { - var expectedError = typeof error === 'string' || error instanceof SecurityError; + var expectedError = typeof error === 'string' || error instanceof SecurityError || error instanceof ValidationError; var errorData = { showReport: !expectedError, message: typeof error === 'string' ? error : error.message, -- GitLab