tweak new error text
This commit is contained in:
parent
7a3b0e180f
commit
08eafe7d89
|
@ -254,8 +254,10 @@ namespace StardewModdingAPI.Framework.ContentManagers
|
|||
{
|
||||
using FileStream stream = File.OpenRead(file.FullName);
|
||||
using SKBitmap bitmap = SKBitmap.Decode(stream);
|
||||
|
||||
if (bitmap is null)
|
||||
throw new InvalidDataException("{file.FullName} appears not to be a valid image file.");
|
||||
throw new InvalidDataException($"Failed to load {file.FullName}. This doesn't seem to be a valid PNG image.");
|
||||
|
||||
rawPixels = SKPMColor.PreMultiply(bitmap.Pixels);
|
||||
width = bitmap.Width;
|
||||
height = bitmap.Height;
|
||||
|
|
Loading…
Reference in New Issue