Add helpId parameter to UserInformationExceptions in MicrosoftGraphBackends.
This commit is contained in:
@@ -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)))
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Duplicati.Library.Backend
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new UserInformationException(Strings.MicrosoftGroup.MissingGroupId);
|
||||
throw new UserInformationException(Strings.MicrosoftGroup.MissingGroupId, "MicrosoftGroupMissingGroupId");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Duplicati.Library.Backend
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new UserInformationException(Strings.SharePointV2.MissingSiteId);
|
||||
throw new UserInformationException(Strings.SharePointV2.MissingSiteId, "SharePointMissingSiteId");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user