Suggestion for better error messages

John Siracusa <[email protected]>
Newsgroups gmane.comp.web.mason.devel
Message-ID <BC0377A1.1DCC2%[email protected]>
Once or day or so, I get an error like this in the apache logs of my Mason
site:

Execution of component 'foo' failed! - Couldn't rename
/foo/bar/3/6/c/36c102d368e368060e15dc23ef96ef83bb325582.tmp4153 to
/foo/bar/3/6/c/36c102d368e368060e15dc23ef96ef83bb325582 at
/usr/lib/perl5/site_perl/5.8.1/Cache/FileBackend.pm line 572.

Line 572 is:

  rename( $temp_path, _Untaint_Path( $p_path ) ) or
    throw Error::Simple( "Couldn't rename $temp_path to $p_path" );

It'd be nice if $! could be included in that error message somewhere since
I'm at a loss as to why I get about one of these rename() failure per day...

-John



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.