Skip to content

Commit

Permalink
Added error handle during synchronization.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkornowski committed Jan 10, 2018
1 parent 567ae97 commit ca1aa6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public AuditMessage pullDataFromParentAndSave(String category, Map<String, Strin

auditMessage.setSuccess(true);
auditMessage.setDetails(PULL_SUCCESS_MESSAGE);
} catch (Exception e) {
} catch (Error | Exception e) {
LOGGER.error("Problem with pulling from parent", e);
auditMessage.setSuccess(false);
auditMessage.setDetails(ExceptionUtils.getFullStackTrace(e));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public AuditMessage readDataAndPushToParent(String category, Map<String, String>

auditMessage.setSuccess(true);
auditMessage.setDetails(PUSH_SUCCESS_MESSAGE);
} catch (Exception e) {
} catch (Error | Exception e) {
LOGGER.error("Problem with pushing to parent", e);
auditMessage.setSuccess(false);
auditMessage.setDetails(ExceptionUtils.getFullStackTrace(e));
Expand Down

0 comments on commit ca1aa6a

Please sign in to comment.