Mercurial > hg > octave-lyh
diff scripts/plot/private/__ghostscript__.m @ 12460:952e52dda82e
Improve warnings when shell utilties needed for printing are missing.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sat, 19 Feb 2011 15:01:59 -0500 |
parents | b0084095098e |
children | cefd568ea073 |
line wrap: on
line diff
--- a/scripts/plot/private/__ghostscript__.m +++ b/scripts/plot/private/__ghostscript__.m @@ -130,7 +130,9 @@ endif endif - if (isempty (opts.output)) + if (isempty (opts.binary)) + error ("print:no_ghostscript", "__ghostscript__.m: ghostscript is required."); + elseif (isempty (opts.output)) cmd = sprintf ("%s %s", opts.binary, gs_opts); else cmd = sprintf ("%s %s -sOutputFile=%s", opts.binary, gs_opts, opts.output);