displaying an error if gnuplot is not found

Søren Hauberg soren at hauberg.org
Wed Apr 16 13:26:53 CDT 2008


ons, 16 04 2008 kl. 14:23 -0400, skrev John W. Eaton:
> On 16-Apr-2008, Søren Hauberg wrote:
> 
> | It seems people don't read the top of the long error message that is
> | presented if gnuplot is not found. At least, I think I've seen a bunch
> | of questions on the help list that could simply be answered by "install
> | gnuplot". Perhaps a patch like the attached could make this easier to
> | figure out?
> 
> I applied this patch, but shortened the error message to
> 
>   error ("you must have gnuplot installed to display graphics; if you have gnuplot installed in a non-standard location, see the 'gnuplot_binary' function");

I think you want a newline (\n) at the end of the error message.
Otherwise the error appears at the top of a very long list of errors. If
the point is to help people who don't read the error messages, then I
think we need the newline.

Søren



More information about the Bug-octave mailing list