[prev in list] [next in list] [prev in thread] [next in thread] 

List:       interchange-users
Subject:    Re: [ic] Usertag return value
From:       Davor Ocelic <docelic () spinlocksolutions ! com>
Date:       2009-02-11 21:21:05
Message-ID: 20090211222105.5711aef8 () nano
[Download RAW message or body]


> 
> I'm still not sure why "or return 0;" causes the usertag to fail so I
> changed my file writing and chmodding lines like this:
> 
> $return= $image->Write(filename=>'/file/location/'.$name.'_image.jpg')
> or return 0;
> $Tag->log("1: return=$return error=$!");
> $return= chmod(0644,"/file/location/".$name."_image.jpg") or return 0;
> $Tag->log("2: return=$return error=$!");
> 
> and the usertag fails and there is nothing in the catalog error.log.
> Can you tell me what I'm doing wrong?

You need to remove the "or return 0;" parts you previously added.
Because
if it's returning improperly, it's clear that
$Tag->log() will never get called, and you won't get anything in the
logs.

Try that and report your results.

-doc

_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic