summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main/errors.ts
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2022-05-11 13:46:52 +0200
committerOskar Nyberg <oskar@mullvad.net>2022-05-11 13:46:52 +0200
commitcb8712d758e120fde518f384fa3409683537adff (patch)
treee554b1451b1a0c6001fa5eedf44dca291187d655 /gui/src/main/errors.ts
parenteb8c374b4dfff70a3b76b9ee36b248e8cb57e483 (diff)
downloadmullvadvpn-cb8712d758e120fde518f384fa3409683537adff.tar.xz
mullvadvpn-cb8712d758e120fde518f384fa3409683537adff.zip
Handle error when failing to fetch devices
Diffstat (limited to 'gui/src/main/errors.ts')
-rw-r--r--gui/src/main/errors.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/src/main/errors.ts b/gui/src/main/errors.ts
index b7cc82c365..c3071f08a6 100644
--- a/gui/src/main/errors.ts
+++ b/gui/src/main/errors.ts
@@ -21,3 +21,9 @@ export class TooManyDevicesError extends Error {
super('Too many devices');
}
}
+
+export class ListDevicesError extends Error {
+ constructor() {
+ super('Failed to fetch list of devices');
+ }
+}