aboutsummaryrefslogtreecommitdiffhomepage
path: root/library/states.ml
diff options
context:
space:
mode:
Diffstat (limited to 'library/states.ml')
-rw-r--r--library/states.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/states.ml b/library/states.ml
index ea4e7d43c..031222c7d 100644
--- a/library/states.ml
+++ b/library/states.ml
@@ -37,6 +37,7 @@ let with_state_protection f x =
try
let a = f x in unfreeze st; a
with reraise ->
+ let reraise = Errors.push reraise in
(unfreeze st; raise reraise)
let with_state_protection_on_exception = Future.transactify