webmcp
view framework/env/trace/error.lua @ 98:c92bd1ec1130
Fixed error in example webserver configurations (do not include question mark)
| author | jbe | 
|---|---|
| date | Mon Oct 15 16:57:39 2012 +0200 (2012-10-15) | 
| parents | 0bbfee4d4aed | 
| children | a74e62c96501 | 
 line source
     1 --[[--
     2 trace.error{
     3 }
     5 This function is called automatically in case of errors to log them.
     7 --]]--
     9 function trace.error(args)
    10   if not trace._disabled then
    11     trace._new_entry { type = "error" }
    12     local closed_section = trace._close_section()
    13     closed_section.hard_error = true  -- TODO: not used, maybe remove
    14     trace._stack = { trace._tree }
    15   end
    16 end
