summaryrefslogtreecommitdiff
path: root/compiler/PureUtils.ml
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/PureUtils.ml')
-rw-r--r--compiler/PureUtils.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/PureUtils.ml b/compiler/PureUtils.ml
index 30a89fee..2ef97e59 100644
--- a/compiler/PureUtils.ml
+++ b/compiler/PureUtils.ml
@@ -409,7 +409,7 @@ let mk_result_ty (ty : ty) : ty = Adt (Assumed Result, [ ty ])
let unwrap_result_ty (ty : ty) : ty =
match ty with
| Adt (Assumed Result, [ ty ]) -> ty
- | _ -> failwith "not a result type"
+ | _ -> raise (Failure "not a result type")
let mk_result_fail_texpression (ty : ty) : texpression =
let type_args = [ ty ] in