[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] errors



On Tue, Nov 23, 1999 at 03:54:01PM -0800, Nicholas G. Thornton wrote:
> when you get errors, is there a way to reformat the output inserting an extra newline after the "file; line" line?
> 
> e.x. turn...
> # <error>
> File '<path name>'; Line <line>
> # <error>
> File '<path name>'; Line <line>
> # <error>
> File '<path name>'; Line <line>
> 
> into...
> # <error>
> File '<path name>'; Line <line>
> 
> # <error>
> File '<path name>'; Line <line>
> 
> # <error>
> File '<path name>'; Line <line>
> 

Yes, if you print that line yourself:

die "Error.\nFile '" . __FILE__ . "'; Line " . __LINE__ . "\n\n";


Curiously, if you run this in an Untitled window, you get 'Dev:Pseudo',
whereas you get 'Untitled' if you let the die magic add the filename.

Ronald

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org