From 8558f80b4077536d6aa46b97328d6df1210e261f Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Thu, 13 Aug 2026 13:18:05 +0800 Subject: [Support] Centralize error context handling --- backend/include/rcc/Support/Error.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend/include/rcc') diff --git a/backend/include/rcc/Support/Error.h b/backend/include/rcc/Support/Error.h index 0429cc0..b631635 100644 --- a/backend/include/rcc/Support/Error.h +++ b/backend/include/rcc/Support/Error.h @@ -56,6 +56,8 @@ private: std::string Message; }; +[[nodiscard]] Error withErrorContext(const Error &Failure, std::string Context); + template using Expected = std::expected; [[nodiscard]] inline std::unexpected makeUnexpected(ErrorCode Code, std::string Message) { -- cgit v1.2.3