Skip to content

Commit a9bb913

Browse files
authored
Change to use asErr instead of unwrapErr for msvc
1 parent 1d5e9b4 commit a9bb913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/Geode/Result.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
})
3131
#else
3232
#define GEODE_UNWRAP(...) \
33-
if (auto res = __VA_ARGS__; res.isErr()) return geode::Err(std::move(res).unwrapErr())
33+
if (auto res = __VA_ARGS__; res.isErr()) return std::move(res).asErr()
3434
#endif
3535
#endif
3636

0 commit comments

Comments
 (0)