Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2002-01-16 (18:53)
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:  FAQ:
To unsubscribe, mail  Archives: