// rocie - An enterprise grocery management system - Web app // // Copyright (C) 2026 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Rocie. // // You should have received a copy of the License along with this program. // If not, see . use leptos::{ IntoView, component, error::ErrorBoundary, prelude::{Children, ClassAttribute, CollectView, ElementChild, Get}, view, }; use crate::components::site_header::SiteHeader; #[component] pub(crate) fn CatchErrors(children: Children) -> impl IntoView { view! {

"Uh oh! Something went wrong!"

"Errors: "

    {move || { errors .get() .into_iter() .map(|(_, e)| { view! {
  • {e.to_string()}
  • } }) .collect_view() }}
} }>{children()}
} }