[ic] Usertag return value

Grant 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.
> 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.

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
command fails.

- Grant

> Try that and report your results.
> -doc

More information about the interchange-users mailing list