summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-09-01 14:11:01 +0200
committerTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-09-30 09:51:49 +0200
commit149e77653cef0bbe8fe11fe2571d82de843cdc46 (patch)
tree13177476911ccd8ca923c491cb83e532281cfe66
parentcadcae1712b4243577b1a12a13eea8b785e62e3f (diff)
downloadmullvadvpn-149e77653cef0bbe8fe11fe2571d82de843cdc46.tar.xz
mullvadvpn-149e77653cef0bbe8fe11fe2571d82de843cdc46.zip
Add DuplicateName Error
-rw-r--r--mullvad-types/src/access_method.rs2
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 },