diff options
Diffstat (limited to 'library/declaremods.ml')
-rw-r--r-- | library/declaremods.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/declaremods.ml b/library/declaremods.ml index 61d6e0852..aedb81633 100644 --- a/library/declaremods.ml +++ b/library/declaremods.ml @@ -1006,7 +1006,9 @@ let protect_summaries f = try f fs with e -> (* Something wrong: undo the whole process *) - Summary.unfreeze_summaries fs; raise e + let e = Errors.push e in + let () = Summary.unfreeze_summaries fs in + raise e let declare_include interp_struct me_asts = protect_summaries |