Mercurial > hg > octave-lyh
diff scripts/plot/print.m @ 10635:d1978e7364ad
Print name of function in error() string messages.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 16 May 2010 22:26:54 -0700 |
parents | 79410269cd21 |
children | fbd7843974fa |
line wrap: on
line diff
--- a/scripts/plot/print.m +++ b/scripts/plot/print.m @@ -256,7 +256,7 @@ ghostscript_binary = file_in_path (EXEC_PATH, ghostscript_binary); endif if (isempty (ghostscript_binary)) - error ("print.m: Ghostscript binary ""%s"" could not be located", arg(3:end)) + error ("print: Ghostscript binary ""%s"" could not be located", arg(3:end)) endif elseif (length (arg) > 2 && arg(1:2) == "-F") idx = rindex (arg, ":"); @@ -703,7 +703,7 @@ status1 = system (command); status2 = system (sprintf ("mv %s %s", temp_name, appended_file_name)); if (status1 != 0 || status2 != 0) - error ("print.m: output failed to append to '%s'.", appended_file_name); + error ("print: output failed to append to '%s'.", appended_file_name); endif endif unwind_protect_cleanup