aboutsummaryrefslogtreecommitdiff
path: root/checker/validate.ml
diff options
context:
space:
mode:
Diffstat (limited to 'checker/validate.ml')
-rw-r--r--checker/validate.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/checker/validate.ml b/checker/validate.ml
index b0c1704ee5..f1b3fbe42e 100644
--- a/checker/validate.ml
+++ b/checker/validate.ml
@@ -69,7 +69,7 @@ let rec val_gen v ctx o = match v with
(try val_tag Obj.string_tag ctx o
with Failure _ -> fail ctx o "expected a string")
| Any -> ()
- | Fail -> fail ctx o "unexpected object"
+ | Fail s -> fail ctx o ("unexpected object " ^ s)
| Annot (s,v) -> val_gen v (ctx/s) o
(* Check that an object is a tuple (or a record). vs is an array of