|
Hello Alex, This isn't only used to report an error to users on website.Since I use lua for webpublishing, I have somewher ein my source a function called xml_render() - this one, should use die at the end, to prevent from showing header and stuff when the rest of the script is executed. The issue is, that this function is called mostly somewhere in a set of sets of function-sets, so its not possible (easily, without making the source unreadable) to do this via using if-else-constructs.
Kind regards, Jan (DracoBlue) -------------------------- http://dracoblue.net Alex Queiroz schrieb:
Hallo, On 1/25/07, Jan Schütze <JanS@dracoblue.de> wrote:Why is this needed? I am using several database and templating connections, but if there is any issues (in 4th, 5th (or more) recusion step) its not possible to stop execution with with if-else-constructs. So a die("Error occured") would be greatly appriciated.What about raising an error?