Skip to content

Commit

Permalink
[MODORDERS-1169]. Update an exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
BKadirkhodjaev committed Aug 21, 2024
1 parent 033ddf4 commit 9a3785f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -648,9 +648,9 @@ private Future<Boolean> createHoldingsForChangedLocations(Piece piece, String in
})
.onFailure(t -> {
String msg = Optional.ofNullable(piece.getLocationId())
.map(pieceLocation -> "location : " + pieceLocation)
.orElse("holding : " + piece.getHoldingId());
logger.error("createHoldingsForChangedLocations:: Cannot create holding for specified piece, msg: {}", msg);
.map(pieceLocation -> "locationId: " + pieceLocation)
.orElse("holdingId: " + piece.getHoldingId());
logger.error("createHoldingsForChangedLocations:: Cannot create holding for specified piece, {}", msg);
addError(piece.getPoLineId(), piece.getId(), ITEM_UPDATE_FAILED.toError());
});
}
Expand Down

0 comments on commit 9a3785f

Please sign in to comment.