If you use a
try step, you don’t need to wrap the output in a
Right - the step adapter will do this for you.
tee steps have present since the beginning of this gem, and were really there to help people add steps for operations that weren’t already returning
If all your operations are already returning
Either results, then all you need to use is the plain
step step adapter.
I’m not sure if this is a contrived example you’ve shared, or something based on your actual working code, but in your case it’d probably make sense to rescue from whatever exception you expect right on the operation method/class, e.g.
rescue MySpecialError => e
Hope this helps!