diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-09-01 08:34:09 +0200 |
|---|---|---|
| committer | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-09-30 09:51:49 +0200 |
| commit | 970c3cb692eef2a25a08573cd89f143040006e7f (patch) | |
| tree | d0b0dc279151ccd913e5f191180de94d1a5575e6 | |
| parent | 64e87a363ce1c404a587b3d1c03fa64ad6073ec5 (diff) | |
| download | mullvadvpn-970c3cb692eef2a25a08573cd89f143040006e7f.tar.xz mullvadvpn-970c3cb692eef2a25a08573cd89f143040006e7f.zip | |
Preserve returned error by add access method function
| -rw-r--r-- | mullvad-daemon/src/lib.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mullvad-daemon/src/lib.rs b/mullvad-daemon/src/lib.rs index f371b9a91a..e53458071d 100644 --- a/mullvad-daemon/src/lib.rs +++ b/mullvad-daemon/src/lib.rs @@ -3019,10 +3019,7 @@ impl Daemon { enabled: bool, access_method: AccessMethod, ) { - let result = self - .add_access_method(name, enabled, access_method) - .await - .map_err(Error::AccessMethodError); + let result = self.add_access_method(name, enabled, access_method).await; Self::oneshot_send(tx, result, "add_api_access_method response"); } |
