diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-09-01 14:11:01 +0200 |
|---|---|---|
| committer | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-09-30 09:51:49 +0200 |
| commit | 149e77653cef0bbe8fe11fe2571d82de843cdc46 (patch) | |
| tree | 13177476911ccd8ca923c491cb83e532281cfe66 | |
| parent | cadcae1712b4243577b1a12a13eea8b785e62e3f (diff) | |
| download | mullvadvpn-149e77653cef0bbe8fe11fe2571d82de843cdc46.tar.xz mullvadvpn-149e77653cef0bbe8fe11fe2571d82de843cdc46.zip | |
Add DuplicateName Error
| -rw-r--r-- | mullvad-types/src/access_method.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mullvad-types/src/access_method.rs b/mullvad-types/src/access_method.rs index f823e5d83d..02c178a3f9 100644 --- a/mullvad-types/src/access_method.rs +++ b/mullvad-types/src/access_method.rs @@ -164,6 +164,8 @@ impl Default for Settings { #[derive(thiserror::Error, Debug)] pub enum Error { + #[error("Access method with name already exists")] + DuplicateName, /// Built-in access methods can not be removed #[error("Cannot remove built-in access method {}", attempted)] RemoveBuiltin { attempted: BuiltInAccessMethod }, |
