All ThreadError in PStore transaction will be caught and replaced with PStore::Error
|ruby -v:||ruby 1.9.4dev (2011-09-02 trunk 33165) [x86_64-linux]||Backport:|
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.
- lib/pstore.rb (PStore): fix not to replace ThreadError raised in #transaction block with PStore::Error. [Bug #5269]
#4 Updated by Anonymous almost 3 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100