Handle unexpected errors with plugin images.

This commit is contained in:
Raymond 2021-10-09 12:05:36 -04:00
parent 901c50384f
commit d8c3e536e1

View file

@ -2093,6 +2093,11 @@ namespace Dalamud.Interface.Internal.Windows
Log.Error($"Plugin icon for {manifest.InternalName} has an Invalid URI");
return;
}
catch (Exception ex)
{
Log.Error(ex, $"An unexpected error occurred with the icon for {manifest.InternalName}");
return;
}
if (data.StatusCode == HttpStatusCode.NotFound)
return;
@ -2202,6 +2207,11 @@ namespace Dalamud.Interface.Internal.Windows
Log.Error($"Plugin image{i + 1} for {manifest.InternalName} has an Invalid URI");
continue;
}
catch (Exception ex)
{
Log.Error(ex, $"An unexpected error occurred with image{i + 1} for {manifest.InternalName}");
continue;
}
if (data.StatusCode == HttpStatusCode.NotFound)
continue;