Christopher J. Madsen wrote:
* Otherwise, a pre-hook must return 'continue'.  Returning anything
  else is an error.  (This is to prevent hooks that just happen to
  return the value of their last expression from causing mysterious
  problems.)

I've just realized that this has been misunderstood. I wasn't saying that this is how a plugin reports an error. You use "die" for that. I was saying that if a pre hook returns anything other than 'done' or 'continue', then the plugin manager reports "Invalid return value from ...". In other words, it's a bug in the plugin, which the plugin manager will catch and report.

--
Chris Madsen                                          [EMAIL PROTECTED]
  --------------------  http://www.cjmweb.net  --------------------

Reply via email to