AppendObject(new BS_Alert("ERROR: " . $msg, "danger")); $web->PrintHtml(); if ($g_debug) psf_print_debug_as_html(); die(1); }