Skip to content

Commit

Permalink
Merge pull request #934 from guardian/ph-20230926-0839-amedment-check…
Browse files Browse the repository at this point in the history
…-part2

Activate IncompatibleAmendmentHistoryFailure
  • Loading branch information
shtukas authored Sep 26, 2023
2 parents bcb9c7a + 088ab1b commit 5f312f9
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,9 @@ object AmendmentHandler extends CohortHandler {
if (amendmentIsBeforeInstant(amendment, estimationInstant)) {
ZIO.succeed(())
} else {
// ZIO.fail(
// IncompatibleAmendmentHistory(
// s"[4f7589ea] Cohort item ${item} is being written for cancellation, during scheduled amendment, due to last amendment check failing"
// )
ZIO.fail(
AmendmentDataFailure(
s"[77c13996] Cohort item ${item} is being written for cancellation, during scheduled amendment, due to last amendment check failing; amendment: ${amendment}"
IncompatibleAmendmentHistoryFailure(
s"[4f7589ea] Cohort item ${item} is being written for cancellation, during scheduled amendment, due to last amendment check failing; amendment: ${amendment}"
)
)
}
Expand Down

0 comments on commit 5f312f9

Please sign in to comment.