Add helpId parameter to UserInformationExceptions in MicrosoftGraphBackends.

This commit is contained in:
Tyler Gill
2018-03-20 15:09:06 -06:00
parent 94341a640d
commit c57d7e75cd
3 changed files with 3 additions and 3 deletions
@@ -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");
}
}