Skip to content

Commit

Permalink
Update BulkCaseProcessor.java
Browse files Browse the repository at this point in the history
  • Loading branch information
JuicyDragon committed Jan 24, 2019
1 parent 7825457 commit 93e19ca
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ public void withEachCase(Case currentCaseFromGui, CaseConsumer caseWorkFunction)
}
} catch (Exception e) {
// User code threw exception but didnt catch it
logger.error("Error in user provided case work function:");
logger.error(e);
logger.error("Error in user provided case work function:",e);
if(userFunctionErrorCallback != null){
WorkFunctionErrorEvent userFunctionErrorInfo = new WorkFunctionErrorEvent(caseInfo, e);
userFunctionErrorCallback.accept(userFunctionErrorInfo);
Expand All @@ -192,8 +191,7 @@ public void withEachCase(Case currentCaseFromGui, CaseConsumer caseWorkFunction)
}

} catch (Exception e) {
logger.error("Error opening case: ");
logger.error(e);
logger.error("Error opening case: ",e);
// On case open error notify callback if was provided
if(caseErrorCallback != null){
CaseOpenErrorEvent caseErrorInfo = new CaseOpenErrorEvent(caseInfo, e);
Expand Down

0 comments on commit 93e19ca

Please sign in to comment.