mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Merge pull request #632 from daemitus/errors
This commit is contained in:
commit
d3132a5d81
1 changed files with 18 additions and 1 deletions
|
|
@ -1827,7 +1827,14 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
if (!hasImages)
|
||||
{
|
||||
this.pluginImagesMap.Add(manifest.InternalName, Array.Empty<TextureWrap>());
|
||||
Task.Run(async () => await this.DownloadPluginImagesAsync(plugin, manifest, isThirdParty));
|
||||
Task.Run(async () => await this.DownloadPluginImagesAsync(plugin, manifest, isThirdParty))
|
||||
.ContinueWith(task =>
|
||||
{
|
||||
if (task.IsFaulted)
|
||||
{
|
||||
Log.Error(task.Exception.InnerException, "An unhandled exception occurred in the plugin image downloader");
|
||||
}
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
@ -2093,6 +2100,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 +2214,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue