Roxen.git
/
server
/
base_server
/
module.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/base_server/module.pike:1:
// This file is part of Roxen WebServer. // Copyright © 1996 - 2001, Roxen IS.
-
// $Id: module.pike,v 1.
149
2004/03/01 15:
43
:
20
mast Exp $
+
// $Id: module.pike,v 1.
150
2004/03/01 15:
48
:
35
mast Exp $
#include <module_constants.h> #include <module.h> #include <request_trace.h> constant __pragma_save_parent__ = 1; inherit "basic_defvar"; mapping(string:array(int)) error_log=([]);
Roxen.git/server/base_server/module.pike:800:
MultiStatus result, RequestID id) { patch_property_start(path, id); array(mapping(string:mixed)) results; mixed err = catch { results = instructions->execute(path, this_object(), id); }; if (err) {
-
report_debug("patch_properties() failed:\n"
-
"%s\n",
-
describe_backtrace(err));
-
mapping(string:mixed) answer =
-
Roxen.http_low_answer(500, "Internal Server Error.");
+
foreach(instructions, PatchPropertyCommand instr) { result->add_property(path, instr->property_name, answer); } patch_property_unroll(path, id);
-
+
throw (err);
} else { int any_failed; foreach(results, mapping(string:mixed) answer) { if (any_failed = (answer && (answer->error >= 300))) { break; } } if (any_failed) { // Unroll and fail any succeeded items. int i;