From 2bc6398d3edbe820dd26b1bc1c8360822cee794a Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 17 Dec 2022 15:15:27 +0100 Subject: [PATCH] TRY(): Call release_value() instead of expect_release_value() --- luna/include/luna/Result.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luna/include/luna/Result.h b/luna/include/luna/Result.h index 4a8d2baf..b012ffab 100644 --- a/luna/include/luna/Result.h +++ b/luna/include/luna/Result.h @@ -192,5 +192,5 @@ template <> class Result ({ \ auto _expr_rc = (expr); \ if (!_expr_rc.has_value()) return _expr_rc.release_error(); \ - _expr_rc.expect_release_value("sanity check failed: has_error() returned false, yet result has no value"); \ + _expr_rc.release_value(); \ })