Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2017-01-09 13:35:38 +0300
committerKenneth Skovhede <kenneth@hexad.dk>2017-01-09 13:35:38 +0300
commita0298904094582a0cae6be8defd623ad9d61ef10 (patch)
treea9676ec18df180e8c5758657d2fee38cddf1e108 /Duplicati/Library/Backend/Mega
parentfc9f1b1dd36fd347904d58161d4556c5f2423f63 (diff)
Implemented better default error messsages
Diffstat (limited to 'Duplicati/Library/Backend/Mega')
-rw-r--r--Duplicati/Library/Backend/Mega/MegaBackend.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Duplicati/Library/Backend/Mega/MegaBackend.cs b/Duplicati/Library/Backend/Mega/MegaBackend.cs
index 46c16123b..29d4532af 100644
--- a/Duplicati/Library/Backend/Mega/MegaBackend.cs
+++ b/Duplicati/Library/Backend/Mega/MegaBackend.cs
@@ -66,9 +66,9 @@ namespace Duplicati.Library.Backend.Mega
m_password = uri.Password;
if (string.IsNullOrEmpty(m_username))
- throw new Exception(Strings.MegaBackend.NoUsernameError);
+ throw new UserInformationException(Strings.MegaBackend.NoUsernameError);
if (string.IsNullOrEmpty(m_password))
- throw new Exception(Strings.MegaBackend.NoPasswordError);
+ throw new UserInformationException(Strings.MegaBackend.NoPasswordError);
m_prefix = uri.HostAndPath ?? "";
}