Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] error messages to stdout?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Warp <warplayer@f...>
Subject: Re: [Caml-list] error messages to stdout?
>  File /usr/local/lib/ocaml/contrib/fs_lib.cma is not up-to-date with
respect to
>  interface Pcre
>
> The problem was that I piped my ocaml script's output to a file that
> was supposed to just contain data, and then I graphed it, so the error
> message showed up in a graph, which was kind of funny but not what I
> expected. I use pipes and filters a lot, so this could really put a
> wrench in my plans.
>
> Anyway, it would be like, cool, if I could get those errors going to
> stderr instead, or be enlightened as to the error of my ways. Thanks.

If this message comes from RunTime ( when Dynamic Linking ) then that might
be an exception throwed by the dynlink. Then you can catch it and print it
to stderr ( using Printexc.to_string )

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr