diff options
| author | Maxime Dénès | 2018-09-11 13:14:46 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2018-09-11 13:14:46 +0200 |
| commit | 664ceaa604b67e8b4d1638b5df0adafbdd2c1807 (patch) | |
| tree | b314c502ad3ffe12b2ae6f36b88037a6d09b29a6 /plugins/ssrmatching | |
| parent | 2f0e274a1436b477e0be0be94a36ee9461a89767 (diff) | |
| parent | 03bb8c6a22fea0214179e6d5a9d97327d548d2fd (diff) | |
Merge PR #8284: [ssr] anomaly -> error
Diffstat (limited to 'plugins/ssrmatching')
| -rw-r--r-- | plugins/ssrmatching/ssrmatching.ml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/ssrmatching/ssrmatching.ml b/plugins/ssrmatching/ssrmatching.ml index 30a998c6ce..20ea8b3667 100644 --- a/plugins/ssrmatching/ssrmatching.ml +++ b/plugins/ssrmatching/ssrmatching.ml @@ -291,7 +291,10 @@ let unif_EQ_args env sigma pa a = prof_unif_eq_args.profile (unif_EQ_args env sigma pa) a ;; -let unif_HO env ise p c = Evarconv.the_conv_x env p c ise +let unif_HO env ise p c = + try Evarconv.the_conv_x env p c ise + with Evarconv.UnableToUnify(ise, err) -> + raise Pretype_errors.(PretypeError(env,ise,CannotUnify(p,c,Some err))) let unif_HO_args env ise0 pa i ca = let n = Array.length pa in |
