Skip to content

Commit

Permalink
MODSOURMAN-1066 Correct error message (#820)
Browse files Browse the repository at this point in the history
* Add handling if DI_ERROR is not sent

* Check entity type not null when constructing DI_ERROR payload

* Add test

* Fail future with the actual cause (parsing exception) to be shown on UI
  • Loading branch information
KaterynaSenchenko authored Nov 2, 2023
1 parent 9023d56 commit 5f5227c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,6 @@ public Future<Boolean> sendDiErrorEvent(Throwable throwable,
}
}
LOGGER.warn("sendDiErrorEvent:: Appropriate DI_ERROR payload builder not found, DI_ERROR without records info will be send");
return Future.failedFuture(new NotFoundException(format("Couldn't find DI_ERROR payload builder for recordType %s", currentRecord.getRecordType())));
return Future.failedFuture(throwable);
}
}

0 comments on commit 5f5227c

Please sign in to comment.