BAN: TRY() now returns the error itself and not ErrorOr<>

This allows us to use TRY with different ErrorOr<> templates
This commit is contained in:
Bananymous 2023-02-01 01:21:14 +02:00
parent 3a1f068bac
commit 56d6b2af3d
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
#error "NOT IMPLEMENTED"
#endif
#define TRY(error) ({ auto e = error; if (e.IsError()) return e; e.Value(); })
#define TRY(error) ({ auto e = error; if (e.IsError()) return e.GetError(); e.Value(); })
namespace BAN
{