Date.from_iso8601/1 returns {:error, reason}, so the with else clause matching a bare :error never fired and an invalid date raised a WithClauseError. Match the real date/calendar error reasons so the user sees the validation message.
|
||
|---|---|---|
| .. | ||
| accounts | ||
| fixtures | ||
| membership | ||
| membership_fees | ||
| mv | ||
| mv_web | ||
| support | ||
| seeds_test.exs | ||
| test_helper.exs | ||