From: Koichi Sasada Date: 2012-03-11T15:28:04+09:00 Subject: [ruby-core:43178] [ruby-trunk - Bug #5269] All ThreadError in PStore transaction will be caught and replaced with PStore::Error Issue #5269 has been updated by Koichi Sasada. Assignee set to Hiroshi Nakamura ---------------------------------------- Bug #5269: All ThreadError in PStore transaction will be caught and replaced with PStore::Error https://bugs.ruby-lang.org/issues/5269 Author: Masaki Matsushita Status: Open Priority: Normal Assignee: Hiroshi Nakamura Category: lib Target version: 2.0.0 ruby -v: ruby 1.9.4dev (2011-09-02 trunk 33165) [x86_64-linux] =begin I noticed all ThreadError in PStore transaction will be caught and replaced with PStore::Error. Here is an example: require 'pstore' ps = PStore.new("hoge") ps.transaction do ���raise ThreadError end The ThreadError was replaced with PStore::Error. /usr/local/lib/ruby/1.9.1/pstore.rb:342:in `rescue in transaction': nested transaction (PStore::Error) from /usr/local/lib/ruby/1.9.1/pstore.rb:312:in `transaction' from pstore_rescue.rb:4:in `
' I wrote and attached a patch. Patched PStore passes in test/test_pstore.rb. =end -- http://bugs.ruby-lang.org/