Преглед на файлове

Improved error handling

Krzysztof Krysiński преди 3 месеца
родител
ревизия
967060e3a0
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      src/PixiEditor.PixiAuth/PixiAuthClient.cs
  2. 1 1
      src/PixiEditor.UI.Common/PixiEditor.UI.Common.csproj

+ 1 - 1
src/PixiEditor.PixiAuth/PixiAuthClient.cs

@@ -146,7 +146,7 @@ public class PixiAuthClient
         {
             throw new BadRequestException(await response.Content.ReadAsStringAsync());
         }
-        else if (response.StatusCode == HttpStatusCode.InternalServerError)
+        else if ((int)response.StatusCode >= 500)
         {
             throw new InternalServerErrorException("INTERNAL_SERVER_ERROR");
         }

+ 1 - 1
src/PixiEditor.UI.Common/PixiEditor.UI.Common.csproj

@@ -10,7 +10,7 @@
       <AvaloniaResource Include="Assets/**"/>
       <AvaloniaResource Include="Fonts/**"/>
       <None Include="Assets/**" CopyToOutputDirectory="PreserveNewest" />
-      <None Include="Fonts/**" CopyToOutputDirectory="PreserveNewest" />
+      <None Include="Fonts/PixiPerfect.ttf" CopyToOutputDirectory="PreserveNewest" />
     </ItemGroup>