1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-05 15:56:00 +02:00

Display error for theme file failure

This commit is contained in:
Brian Fiete 2023-06-23 07:15:38 -04:00
parent 269716c0d4
commit 19a2855da9
2 changed files with 9 additions and 4 deletions

View file

@ -478,8 +478,11 @@ namespace IDE
return;
StructuredData sd = scope .();
if (sd.Load(themeFilePath) case .Err)
if (sd.Load(themeFilePath) case .Err(var err))
{
gApp.OutputErrorLine($"Failed to load theme file '{themeFilePath}': {err}");
return;
}
using (sd.Open("Colors"))
mColors.Deserialize(sd);