From 0b86cff2500e029e23fbe17b4c67a14a248f35b4 Mon Sep 17 00:00:00 2001 From: linhpd-axonivy <138570547+linhpd-axonivy@users.noreply.github.com> Date: Fri, 28 Jun 2024 13:54:46 +0700 Subject: [PATCH] RHT-4332: remove try block which hide the error (cherry picked from commit 12221d5c9053294967f060121052ed56d2d647d7) --- docuware-connector/processes/UploadService.p.json | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/docuware-connector/processes/UploadService.p.json b/docuware-connector/processes/UploadService.p.json index 3e6b593..ddae0a4 100644 --- a/docuware-connector/processes/UploadService.p.json +++ b/docuware-connector/processes/UploadService.p.json @@ -72,8 +72,6 @@ "} catch(DocuWareException dex) {", " in.error = BpmError.create(\"com:eon:ivy:shared:docuware:rest\").withMessage(dex.getErrorMessage()).build();", " ivy.log.error(\"Document upload failed. Error: \" + dex.getErrorMessage());", - "} catch(Exception e) {", - " ivy.log.error(e.getMessage());", "}" ], "templateParams" : { @@ -198,11 +196,7 @@ "} catch(DocuWareException dex) {", " in.error = BpmError.create(\"com:eon:ivy:shared:docuware:rest\").withMessage(dex.getErrorMessage()).build();", " in.error.setAttribute(\"RestClientResponseStatusCode\", dex.httpCode);", - " ivy.log.error(\"Document upload failed. Error: \" + dex.getErrorMessage());", - " ", - "} catch(Exception e) {", - " ivy.log.error(e.getMessage());", - " ", + " ivy.log.error(\"Document upload failed. Error: \" + dex.getErrorMessage()); ", "}" ], "templateParams" : { @@ -344,4 +338,4 @@ }, "connect" : { "id" : "f21", "to" : "f10", "via" : [ { "x" : 520, "y" : 328 }, { "x" : 520, "y" : 240 } ] } } ] -} +} \ No newline at end of file