[ic] Usertag return value
docelic at spinlocksolutions.com
Wed Feb 11 21:21:05 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
Try that and report your results.
More information about the interchange-users