Closed zorbash closed 3 years ago
defmodule ArithmeticPipeline do use Opus.Pipeline step :add_one, with: &(&1 + 1) check :even?, with: &(rem(&1, 2) == 0), error_message: :expected_an_even step :do_something_else
The error message should accept a function which will be called with the return value of the previous stage so that the error message can be parameterised.
Current behavior
The error message should accept a function which will be called with the return value of the previous stage so that the error message can be parameterised.