You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If interactor within organizer fails, messages and details get populated 3 items with the same message.
@details={:context=>[{:error=>"Invalid value for eu_vat."},{:error=>"Invalid value for eu_vat."},{:error=>"Invalid value for eu_vat."}]},@messages={:context=>["Invalid value for eu_vat.","Invalid value for eu_vat.","Invalid value for eu_vat."]}
You can use code from #169 to reproduce the issue.
Thanks,
The text was updated successfully, but these errors were encountered:
majksner
changed the title
Context.fail! error message gets pupulated n times in messages
Context.fail! error message gets pupulated 3 times with the same message
Feb 11, 2020
[1]pry(main)> result=TestInteractor::Test.perform()=>#<TestInteractor::Test::Context>[2]pry(main)> result.errors=>#<ActiveModel::Errors:0x00007f957067a6a8@base=#<TestInteractor::Test::Context>,@details={:context=>[{:error=>"Something Went Wrong in Prepare"}]},@messages={:context=>["Something Went Wrong in Prepare"]}>
If interactor within organizer fails,
messages
anddetails
get populated 3 items with the same message.You can use code from #169 to reproduce the issue.
Thanks,
The text was updated successfully, but these errors were encountered: