trailblazer-operation icon indicating copy to clipboard operation
trailblazer-operation copied to clipboard

Result#success? returns false for any custom event

Open yogeshjain999 opened this issue 4 years ago • 0 comments

Below line assumes that any end_event apart from End::Success would make Result unsuccessful. https://github.com/trailblazer/trailblazer-operation/blob/ddceff65a63ff7a72aa93cde3e2752d0d20d2512/lib/trailblazer/operation/railway.rb#L15

But as any custom event wouldn't mean the result is a failure, is it possible to do the opposite and check if event is End::Failure ?

yogeshjain999 avatar Sep 27 '20 07:09 yogeshjain999