Assertion added when handler not found
authorTimm S. Mueller <timm.mueller@lsexperts.de>
Thu, 20 Dec 2007 13:23:16 +0100
changeset 234b798ec008fe2
parent 233 1cadd3d888ab
child 236 08935ec13bba
Assertion added when handler not found
cgi-bin/tek/class/loona.lua
     1.1 --- a/cgi-bin/tek/class/loona.lua	Thu Dec 20 13:23:00 2007 +0100
     1.2 +++ b/cgi-bin/tek/class/loona.lua	Thu Dec 20 13:23:16 2007 +0100
     1.3 @@ -1773,7 +1773,8 @@
     1.4  function Loona:run(fname)
     1.5  	self:indexdynamic()
     1.6  	fname = fname or self.requesthandler
     1.7 -	local parsed, msg = self:loadhtml(open(fname), "loona:out", fname)
     1.8 +	local f = assert(open(fname), self:dbmsg("Handler not found", fname))
     1.9 +	local parsed, msg = self:loadhtml(f, "loona:out", fname)
    1.10  	assert(parsed, self:dbmsg("HTML/Lua parsing failed", msg))
    1.11  	self:runboxed(parsed)
    1.12  	return self