Skip Menu |

This queue is for tickets about the Cache-Cache CPAN distribution.

Report information
The Basics
Id: 4683
Status: resolved
Priority: 0/
Queue: Cache-Cache

People
Owner: dewitt [...] unto.net
Requestors: siracusa [...] mindspring.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.02
Fixed in: (no value)



Subject: Suggestion for better error messages
In the file Cache/FileBackend.pm, line 572: 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() failures per day when using Cache::Cache via HTML::Mason. The same goes for all such calls that may fail and set $! when they do: rename(), mkdir(), etc.
From: dewitt [...] unto.net
Hi -- good suggestion. Fixed in the CVS version on sourceforge. Thanks! -DeWitt [JSIRACUSA - Mon Dec 15 15:59:16 2003]: Show quoted text
> In the file Cache/FileBackend.pm, line 572: > > 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() failures per > day when using Cache::Cache via HTML::Mason. > > The same goes for all such calls that may fail and set $! when they > do: rename(), mkdir(), etc.