summaryrefslogtreecommitdiff
path: root/lib/pstore.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pstore.rb')
-rw-r--r--lib/pstore.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pstore.rb b/lib/pstore.rb
index 3f95e8c..743b1da 100644
--- a/lib/pstore.rb
+++ b/lib/pstore.rb
@@ -89,6 +89,9 @@ class PStore
catch(:pstore_abort_transaction) do
value = yield(self)
end
+ rescue Exception
+ @abort = true
+ raise
ensure
unless @abort
begin