[pLog-svn] wizard errors

Oscar Renalias oscar at renalias.net
Sat Mar 3 05:04:55 EST 2007


On 2 Mar 2007, at 18:59, Jon Daley wrote:

> On Fri, 2 Mar 2007, Oscar Renalias wrote:
>> On 3/2/07, Jon Daley <plogworld at jon.limedaley.com> wrote:
>>> Gallery rename:
>>>         If the file doesn't exist, a PHP exception is thrown  
>>> during the
>>> rename, and the $messages .= "error" isn't used.
>>>         I'll add part of a fix so the wizard can be run multiple  
>>> times
>>> without failing at the gallery rename, if the destination already  
>>> exists.
>>
>> thank you, that would be useful.
>  	I added this fix, but if the source is missing, a php exception
> will be thrown, rather than our error message.  I am not sure how  
> to fix
> that.  I guess we have to add a File::exists($source) call before the
> rename.

I think that's the only way for now, until we move to PHP5 only when  
we'll be able to use try-catch blocks for exception handling...


More information about the pLog-svn mailing list