mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
Handle unexpected errors with plugin images.
This commit is contained in:
parent
901c50384f
commit
d8c3e536e1
1 changed files with 10 additions and 0 deletions
|
|
@ -2093,6 +2093,11 @@ namespace Dalamud.Interface.Internal.Windows
|
||||||
Log.Error($"Plugin icon for {manifest.InternalName} has an Invalid URI");
|
Log.Error($"Plugin icon for {manifest.InternalName} has an Invalid URI");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Log.Error(ex, $"An unexpected error occurred with the icon for {manifest.InternalName}");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (data.StatusCode == HttpStatusCode.NotFound)
|
if (data.StatusCode == HttpStatusCode.NotFound)
|
||||||
return;
|
return;
|
||||||
|
|
@ -2202,6 +2207,11 @@ namespace Dalamud.Interface.Internal.Windows
|
||||||
Log.Error($"Plugin image{i + 1} for {manifest.InternalName} has an Invalid URI");
|
Log.Error($"Plugin image{i + 1} for {manifest.InternalName} has an Invalid URI");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Log.Error(ex, $"An unexpected error occurred with image{i + 1} for {manifest.InternalName}");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (data.StatusCode == HttpStatusCode.NotFound)
|
if (data.StatusCode == HttpStatusCode.NotFound)
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue