From c57d7e75cd5eddf4ef4d9b2a84d290a7854e0a4a Mon Sep 17 00:00:00 2001 From: Tyler Gill Date: Tue, 20 Mar 2018 15:09:06 -0600 Subject: [PATCH] Add helpId parameter to UserInformationExceptions in MicrosoftGraphBackends. --- Duplicati/Library/Backend/OneDrive/MicrosoftGraphBackend.cs | 2 +- Duplicati/Library/Backend/OneDrive/MicrosoftGroup.cs | 2 +- Duplicati/Library/Backend/OneDrive/SharePointV2.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Duplicati/Library/Backend/OneDrive/MicrosoftGraphBackend.cs b/Duplicati/Library/Backend/OneDrive/MicrosoftGraphBackend.cs index ce7bb3e2f..ac3d79fa3 100644 --- a/Duplicati/Library/Backend/OneDrive/MicrosoftGraphBackend.cs +++ b/Duplicati/Library/Backend/OneDrive/MicrosoftGraphBackend.cs @@ -92,7 +92,7 @@ namespace Duplicati.Library.Backend string authid; options.TryGetValue(AUTHID_OPTION, out authid); if (string.IsNullOrEmpty(authid)) - throw new UserInformationException(Strings.MicrosoftGraph.MissingAuthId(OAuthHelper.OAUTH_LOGIN_URL(this.ProtocolKey))); + throw new UserInformationException(Strings.MicrosoftGraph.MissingAuthId(OAuthHelper.OAUTH_LOGIN_URL(this.ProtocolKey)), "MicrosoftGraphBackendMissingAuthId"); string fragmentSizeStr; if (!(options.TryGetValue(UPLOAD_SESSION_FRAGMENT_SIZE_OPTION, out fragmentSizeStr) && int.TryParse(fragmentSizeStr, out this.fragmentSize))) diff --git a/Duplicati/Library/Backend/OneDrive/MicrosoftGroup.cs b/Duplicati/Library/Backend/OneDrive/MicrosoftGroup.cs index 20916fd8a..60318077c 100644 --- a/Duplicati/Library/Backend/OneDrive/MicrosoftGroup.cs +++ b/Duplicati/Library/Backend/OneDrive/MicrosoftGroup.cs @@ -22,7 +22,7 @@ namespace Duplicati.Library.Backend } else { - throw new UserInformationException(Strings.MicrosoftGroup.MissingGroupId); + throw new UserInformationException(Strings.MicrosoftGroup.MissingGroupId, "MicrosoftGroupMissingGroupId"); } } diff --git a/Duplicati/Library/Backend/OneDrive/SharePointV2.cs b/Duplicati/Library/Backend/OneDrive/SharePointV2.cs index b2f40aee0..6fe94fb42 100644 --- a/Duplicati/Library/Backend/OneDrive/SharePointV2.cs +++ b/Duplicati/Library/Backend/OneDrive/SharePointV2.cs @@ -22,7 +22,7 @@ namespace Duplicati.Library.Backend } else { - throw new UserInformationException(Strings.SharePointV2.MissingSiteId); + throw new UserInformationException(Strings.SharePointV2.MissingSiteId, "SharePointMissingSiteId"); } }