* lisp/ob-ocaml.el (org-babel-execute:ocaml): Do not try to print a value if either the type or the value could not be extracted from the toplevel.
@@ -95,7 +95,9 @@
((member "verbatim" result-params) raw)
((member "output" result-params) output)
(t raw))
- (org-babel-ocaml-parse-output value type))
+ (if (and value type)
+ (org-babel-ocaml-parse-output value type)
+ raw))
(org-babel-pick-name
(cdr (assoc :colname-names params)) (cdr (assoc :colnames params)))