From d9cb3a4e2805b4e2305e9c3399314dbfad7590dc Mon Sep 17 00:00:00 2001 From: anbo-de Date: Thu, 4 Jan 2024 01:23:45 +0100 Subject: [PATCH] qanary.pipeline v3.8.2: test FE show error impr. improved error visualization in test frontend to make it easier to understand errors during calls to Qanary components --- qanary_pipeline-template/pom.xml | 4 ++-- .../src/main/resources/templates/lib/header.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/qanary_pipeline-template/pom.xml b/qanary_pipeline-template/pom.xml index d1224615..9c6304f9 100644 --- a/qanary_pipeline-template/pom.xml +++ b/qanary_pipeline-template/pom.xml @@ -5,7 +5,7 @@ 4.0.0 qa.pipeline eu.wdaqua.qanary - 3.8.1 + 3.8.2 org.springframework.boot spring-boot-starter-parent @@ -14,7 +14,7 @@ 11 2.7.14 - [3.10.3,4.0.0) + [3.11.1,4.0.0) 1.4.13 qanary qanary-pipeline diff --git a/qanary_pipeline-template/src/main/resources/templates/lib/header.html b/qanary_pipeline-template/src/main/resources/templates/lib/header.html index f16e33d0..05496a11 100644 --- a/qanary_pipeline-template/src/main/resources/templates/lib/header.html +++ b/qanary_pipeline-template/src/main/resources/templates/lib/header.html @@ -294,7 +294,7 @@ textMessage = jqXHR.responseText; if (jsonMessage) { console.log("jsonMessage:", jsonMessage); - coreMessage = jsonMessage.substr(0, jsonMessage.indexOf(".", jsonMessage.indexOf(":")) + 1) + coreMessage = jsonMessage.substr(0, jsonMessage.indexOf("|", jsonMessage.indexOf(":")) + 1) } else if (textMessage){ console.log("textMessage:",textMessage); coreMessage = textMessage; @@ -305,7 +305,7 @@ console.log("error message: none found"); coreMessage = ""; } - message = "ERROR: The process failed.\nPlease check your implementation!\n

" + coreMessage + "

See browser console for details."; + message = "ERROR: The process failed.\nPlease check your implementation!\n

" + coreMessage + "

See your browser developer console for details."; $("#errormessage").html(message); $("#errormessage").slideDown("fast"); // show results with animation $("#errormessage").show(); @@ -321,7 +321,7 @@ textMessage = jqXHR.responseText; if (jsonMessage) { console.log("jsonMessage:", jsonMessage); - coreMessage = jsonMessage.substr(0, jsonMessage.indexOf(".", jsonMessage.indexOf(":")) + 1) + coreMessage = jsonMessage.substr(0, jsonMessage.indexOf("|", jsonMessage.indexOf(":")) + 1) } else if (textMessage){ console.log("textMessage:",textMessage); coreMessage = textMessage; @@ -332,7 +332,7 @@ console.log("error message: none found"); coreMessage = ""; } - message = "ERROR: The process failed.\nPlease check your implementation!\n

" + coreMessage + "

See browser console for details."; + message = "ERROR: The process failed.\nPlease check your implementation!\n

" + coreMessage + "

See your browser developer console for details."; $("#errormessage").html(message); $("#errormessage").slideDown("fast"); // show results with animation $("#errormessage").show();