All ThreadError in PStore transaction will be caught and replaced with PStore::Error
I noticed all ThreadError in PStore transaction will be caught and replaced with PStore::Error.
Here is an example:
ps = PStore.new("hoge")
The ThreadError was replaced with PStore::Error.
rescue in transaction': nested transaction (PStore::Error)transaction'
from pstore_rescue.rb:4:in `'
I wrote and attached a patch. Patched PStore passes in test/test_pstore.rb.
Updated by Anonymous over 7 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r37617.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- lib/pstore.rb (PStore): fix not to replace ThreadError raised in #transaction block with PStore::Error. [ruby-core:39238] [Bug #5269]