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(); \ })