acs_bootstrap_fatal_error
acs_bootstrap_fatal_error
Defined in
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
-
No testcase defined.
Source code:
proc rp_invoke_filter { conn arg why } { return "filter_ok" }
proc rp_invoke_procs { conn arg why } {}
set proc_name {Bootstrap}
nsv_set bootstrap_fatal_error . "$message<blockquote><pre>[ns_quotehtml $::errorInfo]</pre></blockquote>"
ns_log Error "$proc_name: Server startup failed: $message\n$::errorInfo"
proc bootstrap_write_error { args } {
ns_returnerror 503 "Server startup failed: [nsv_get bootstrap_fatal_error .]"
return "filter_return"
}
ns_register_filter preauth GET * bootstrap_write_error
ns_register_filter preauth POST * bootstrap_write_error
ns_register_filter preauth HEAD * bootstrap_write_error
if { $throw_error_p } {
return -code error -errorcode bootstrap_fatal_error "Bootstrap fatal error"
}
XQL Not present:Generic, PostgreSQL, Oracle
[
hide source ]
| [
make this the default ]