|
From: | Bill Denney |
Subject: | Re: wavread problems |
Date: | Thu, 12 May 2005 00:18:51 -0400 (EDT) |
On Wed, 11 May 2005, Keith Goodman wrote:
If that's the case for most users, then here's another alternative that also prints (verbose mode?) a snippet of code as it does the traceback: ERROR: `fidy' undefined /big/long/directory/path/myfunction.m Line 86 column 13: y = exp (sum (log (x), dim) / n); /somewhat/shorter/path/slick.m Line ?? column ??: match = all( [ y(1:n-1,:) == y(2:n,:) ]' ); /random/matrix/theory/rmt.m Line 113 column 14: if ( nargin < 1 || nargin > 2 || (nargin... /octave/money/back/gaurantee/fx.m Line 17 column 14: usage ("unique (x) or unique (x, 'rows')");
I very much like this format, and I like the option of having a verbose mode that shows the actual line (or a snippet of the line if it is longer than the terminal is wide). I think that the whole path should be included in the errors (even if it is longer than the console is wide) so that the user is sure to be certain where the file is.
I'm not available to work on stuff now, but if this isn't done by the time I am available (and the format has been agreed upon), I'd be willing to try to make a patch for it.
Bill -- "Many a small thing has been made large by the right kind of advertising." -- Mark Twain, _A Connecticut Yankee in King Arthur's Court_ ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |