changeset 9099:3a5d41b382ab

__gnuplot_get_var__.m: Correct misleading error messages, and remove dangling/commented code.
author Ben Abbott <bpabbott@mac.com>
date Mon, 06 Apr 2009 19:33:01 -0400
parents 5ecdb3d3568f
children 1a8bbfb2f7cf
files scripts/ChangeLog scripts/plot/__gnuplot_get_var__.m
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Mon Apr 06 18:57:42 2009 -0400
+++ b/scripts/ChangeLog	Mon Apr 06 19:33:01 2009 -0400
@@ -1,5 +1,7 @@
 2009-04-06  Ben Abbott <bpabbott@mac.com>
 
+	* plot/__gnuplot_get_var__.m: Correct misleading error messages, and
+	remove dangling/commented code.
 	* plot/__gnuplot_default_font__.m: Remove file from archive.
 	* plot/__go_draw_axes__.m, plot/__go_draw_figure__.m: Allow
 	fontsize to be specified for all terminals with fontname == "*".
--- a/scripts/plot/__gnuplot_get_var__.m	Mon Apr 06 18:57:42 2009 -0400
+++ b/scripts/plot/__gnuplot_get_var__.m	Mon Apr 06 19:33:01 2009 -0400
@@ -43,7 +43,7 @@
   endif
   if (numel (ostream) < 1)
     error ("__gnuplot_get_var__: stream to gnuplot not open");
-  elseif (ispc ()) # || true
+  elseif (ispc ())
     if (numel (ostream) == 1)
       error ("__gnuplot_get_var__: Need mkfifo that is not implemented under Windows");
     endif
@@ -62,7 +62,7 @@
     [err, msg] = mkfifo (gpin_name, 6*8*8);
 
     if (err != 0)
-      error ("__gnuplot_get_var__: Can not open fifo (%s)", msg);
+      error ("__gnuplot_get_var__: Can not make fifo (%s)", msg);
     endif
   endif
 
@@ -82,7 +82,7 @@
       fflush (ostream);
       [gpin, err] = fopen (gpin_name, "r");
       if (err != 0)
-        error ("__gnuplot_get_var__: Can not open fifo (%s)", msg);
+        error ("__gnuplot_get_var__: Can not open fifo.");
       endif
       gp_cmd = sprintf ("\nif (exists(\"%s\")) print %s; else print NaN\n",
                         gp_var_name(1:n), gp_var_name);