Hardened root layout initialization and ghost fallback logic to resolve 500 errors during API downtime.
This commit is contained in:
@@ -19,16 +19,16 @@ export async function load({ params, parent }) {
|
||||
|
||||
const event_location_id = params.event_location_id;
|
||||
if (!event_location_id) {
|
||||
console.log(
|
||||
console.warn(
|
||||
`ae events_pres_mgmt location [event_location_id] +page.ts: The event_location_id was not found in the params!!!`
|
||||
);
|
||||
error(404, {
|
||||
message: 'Location not found'
|
||||
});
|
||||
// error(404, {
|
||||
// message: 'Location not found'
|
||||
// });
|
||||
}
|
||||
ae_acct.slct.event_location_id = event_location_id;
|
||||
|
||||
if (browser) {
|
||||
if (browser && event_location_id) {
|
||||
// Load event location object
|
||||
const load_event_location_obj = await events_func.load_ae_obj_id__event_location({
|
||||
api_cfg: ae_acct.api,
|
||||
|
||||
Reference in New Issue
Block a user