diff options
Diffstat (limited to 'backend/include/rcc/Support/Error.h')
| -rw-r--r-- | backend/include/rcc/Support/Error.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <typename ValueT> using Expected = std::expected<ValueT, Error>; [[nodiscard]] inline std::unexpected<Error> makeUnexpected(ErrorCode Code, std::string Message) { |
