[ic] Usertag return value
emailgrant at gmail.com
Fri Feb 13 02:42:27 UTC 2009
>> 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.
> if it's returning improperly, it's clear that
> $Tag->log() will never get called, and you won't get anything in the
I removed that and the tag executes like it originally did, but I'm
back to the original problem of no '0' being returned in case of a
command failure. There is also nothing in the error.log when a
> Try that and report your results.
More information about the interchange-users