undefined exception object in flow script try {} catch {} block

2005-01-27 Thread Ellis Pritchard
Hi, Using Cocoon 2.1.6, I don't seem to be getting the exception object passed through when catching an exception in flowscript; I've reduced it to the most simple case: function login() { try { throw bang; } catch (x) { cocoon.logger.debug(x); } } I get the error message

Re: undefined exception object in flow script try {} catch {} block

2005-01-27 Thread Leszek Gawron
Ellis Pritchard wrote: Hi, Using Cocoon 2.1.6, I don't seem to be getting the exception object passed through when catching an exception in flowscript; I've reduced it to the most simple case: function login() { try { throw bang; } catch (x) { cocoon.logger.debug(x); } }

Re: undefined exception object in flow script try {} catch {} block

2005-01-27 Thread Ellis Pritchard
Ok! Great first post; it was the logger causing the problem; it should have been: cocoon.log.debug(x) !! Ellis. Ellis Pritchard wrote: Hi, Using Cocoon 2.1.6, I don't seem to be getting the exception object passed through when catching an exception in flowscript; I've reduced it to the most