# std/os/uefi: Add conversion from Status to EfiError · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/628a7f85deb500624fb75f83014d3bc1a1c03cf4)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 628a7f85deb500624fb75f83014d3bc1a1c03cf4

Requested commit: 628a7f85deb500624fb75f83014d3bc1a1c03cf4

Commit: 628a7f85deb500624fb75f83014d3bc1a1c03cf4

Tree: 7cc35d6dfbcd20e8d25e5476126924edb9445079

Author: fifty-six

Committer: fifty-six

## Message

```
std/os/uefi: Add conversion from Status to EfiError

Allows handling uefi function errors in a more zig-style way with try
and catch, using `try f().err()` when a `Status` is returned.

```

## Parents

- [d276a1189de15f85523a0e6844d0fd316306838a](https://git.cafe/gitcafe/zig/commit/d276a1189de15f85523a0e6844d0fd316306838a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/628a7f85deb500624fb75f83014d3bc1a1c03cf4?format=markdown)
