// Back - An extremely simple git issue tracking system. Inspired by tvix's // panettone // // Copyright (C) 2024 Benedikt Peetz // SPDX-License-Identifier: AGPL-3.0-or-later // // This file is part of Back. // // You should have received a copy of the License along with this program. // If not, see . use rocket::{ response::{self, Responder, Response}, Request, }; use super::Error; impl<'r> Responder<'r, 'static> for Error { fn respond_to(self, req: &'r Request<'_>) -> response::Result<'static> { Response::build_from(self.to_string().respond_to(req)?).ok() } }