Skip to content

Commit

Permalink
RHT-4332: remove try block which hide the error
Browse files Browse the repository at this point in the history
(cherry picked from commit 12221d5)
  • Loading branch information
linhpd-axonivy committed Jun 28, 2024
1 parent b30ca01 commit 0b86cff
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions docuware-connector/processes/UploadService.p.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" : {
Expand Down Expand Up @@ -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" : {
Expand Down Expand Up @@ -344,4 +338,4 @@
},
"connect" : { "id" : "f21", "to" : "f10", "via" : [ { "x" : 520, "y" : 328 }, { "x" : 520, "y" : 240 } ] }
} ]
}
}

0 comments on commit 0b86cff

Please sign in to comment.