Re: Suggestion for better error messages
John Siracusa <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <BC038968.1DD21%[email protected]> |
On 12/15/03 3:40 PM, Dave Rolsky wrote: > On Mon, 15 Dec 2003, John Siracusa wrote: >> 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... > > You should send the author a patch. Oops, heh, I forgot that's not strictly part of Mason :) -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