These are chat archives for dry-rb/chat
Next-gen ruby libs! » github.com/dry-rb » website: https://dry-rb.org » forum: https://discourse.dry-rb.org
I'm currently having a problem when using
around step adapters from dry-transaction
result = nil begin ActiveRecord::Base.transaction do result = block.call(Success.new(input)) raise ActiveRecord::Rollback if result.failure? result end rescue ActiveRecord::Rollback # in event of a failure, this doesnt get executed result end
I get an
InvalidResultError instead from my step wrapped around the transaction. so im guessing that the error being raised... doesnt get caught by my rescue block?