diff --git a/MicrosoftTranslatorProvider/MicrosoftTranslatorProvider.csproj b/MicrosoftTranslatorProvider/MicrosoftTranslatorProvider.csproj index 299644c46..c656e338b 100644 --- a/MicrosoftTranslatorProvider/MicrosoftTranslatorProvider.csproj +++ b/MicrosoftTranslatorProvider/MicrosoftTranslatorProvider.csproj @@ -119,7 +119,6 @@ - 2.1.0 diff --git a/MicrosoftTranslatorProvider/Properties/AssemblyInfo.cs b/MicrosoftTranslatorProvider/Properties/AssemblyInfo.cs index 78b135004..b54083674 100644 --- a/MicrosoftTranslatorProvider/Properties/AssemblyInfo.cs +++ b/MicrosoftTranslatorProvider/Properties/AssemblyInfo.cs @@ -29,4 +29,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("2.0.0.0")] -[assembly: AssemblyFileVersion("2.0.3.0")] \ No newline at end of file +[assembly: AssemblyFileVersion("2.0.3.1")] \ No newline at end of file diff --git a/MicrosoftTranslatorProvider/Service/MicrosoftService.cs b/MicrosoftTranslatorProvider/Service/MicrosoftService.cs index 606c0d764..3ea5db11a 100644 --- a/MicrosoftTranslatorProvider/Service/MicrosoftService.cs +++ b/MicrosoftTranslatorProvider/Service/MicrosoftService.cs @@ -59,6 +59,10 @@ public static async Task> GetSupportedLanguages() var response = await httpClient.GetAsync(url); var responseBody = await response.Content.ReadAsStringAsync(); + + if (!response.IsSuccessStatusCode) + throw new Exception($"Error: {response.StatusCode}, {responseBody}"); + var languagesResponse = JsonConvert.DeserializeObject(responseBody); var output = languagesResponse.Translation.Select(x => new TranslationLanguage() diff --git a/MicrosoftTranslatorProvider/pluginpackage.manifest.xml b/MicrosoftTranslatorProvider/pluginpackage.manifest.xml index 4ad5c9970..e852bead2 100644 --- a/MicrosoftTranslatorProvider/pluginpackage.manifest.xml +++ b/MicrosoftTranslatorProvider/pluginpackage.manifest.xml @@ -1,7 +1,7 @@ Microsoft Translator Provider - 2.0.3.0 + 2.0.3.1 Microsoft Translator Provider Trados AppStore Team